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

kubeovn / kube-ovn / 28436540348
26%
master: 27%

Build:
Build:
LAST BUILD BRANCH: renovate/master-github.com-cenkalti-backoff-v6-7.x
DEFAULT BRANCH: master
Ran 30 Jun 2026 10:09AM UTC
Jobs 1
Files 209
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:06AM UTC coverage: 25.638% (-0.006%) from 25.644%
28436540348

push

github

zbb88888
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%)

1 existing line in 1 file now uncovered.

14639 of 57099 relevant lines covered (25.64%)

0.3 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
85.95
-2.47% pkg/ovs/ovn-nb-nat.go
3
16.84
0.0% pkg/controller/pod.go

Coverage Regressions

Lines Coverage ∆ File
1
85.95
-2.47% pkg/ovs/ovn-nb-nat.go
Jobs
ID Job ID Ran Files Coverage
1 28436540348.1 30 Jun 2026 10:09AM UTC 209
25.64
GitHub Action Run
Source Files on build 28436540348
  • Tree
  • List 209
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 211ce192 on github
  • Prev Build on release-1.16 (#28435074902)
  • Next Build on release-1.16 (#28440908238)
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