• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubeovn / kube-ovn / 28436253864
27%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 10:05AM UTC
Jobs 1
Files 217
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 10:02AM UTC coverage: 27.135% (-0.006%) from 27.141%
28436253864

push

github

web-flow
fix: allow multi SNAT with same logical_ip (#6942)

* fix: allow multiple SNAT rules with different external_ip but same logical_ip

Previously, GetNat for SNAT type only matched on logical_ip, causing:
1. Silent creation skip when adding a second SNAT with different
   external_ip but same logical_ip (NatExists found the first rule)
2. Wrong rule deletion (always deleted the first match by logical_ip)

Changes:
- GetNat SNAT filter: match on (external_ip, logical_ip) when
  external_ip is non-empty; empty external_ip falls back to
  logical_ip-only for backward compatibility
- UpdateSnat: pass actual external_ip to GetNat; return early when
  matching SNAT already exists (idempotent)
- Unit tests: use actual external_ip in GetNat calls
- E2E tests: add multi-SNAT, multi-FIP, multi-DNAT scenarios with
  different EIPs from different external subnets, verifying CRD-OVN
  backend precision and deletion independence

Closes #6841

---------

Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>

5 of 17 new or added lines in 2 files covered. (29.41%)

3 existing lines in 2 files now uncovered.

16356 of 60276 relevant lines covered (27.14%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
85.47
-2.19% pkg/ovs/ovn-nb-nat.go
3
16.83
0.0% pkg/controller/pod.go

Coverage Regressions

Lines Coverage ∆ File
2
75.73
-0.53% pkg/ovs/ovn-nb-logical_router_route.go
1
85.47
-2.19% pkg/ovs/ovn-nb-nat.go
Jobs
ID Job ID Ran Files Coverage
1 28436253864.1 30 Jun 2026 10:05AM UTC 217
27.14
GitHub Action Run
Source Files on build 28436253864
  • Tree
  • List 217
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5e39ffb3 on github
  • Prev Build on master (#28435054764)
  • Next Build on master (#28440966268)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc