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

noironetworks / opflex / 2073 / 1
79%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coveralls
DEFAULT BRANCH: master
Ran 25 Apr 2021 03:29AM UTC
Files 271
Run time 20s
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

25 Apr 2021 03:29AM UTC coverage: 79.258% (-0.006%) from 79.264%
TEST_SUITE=travis-build.sh

push

travis-ci-com

GitHub
Fix nat rules priority across all routed prefixes. (#381)

This is a rework of
https://github.com/noironetworks/opflex/commit/aee03cc20

By giving nat flows +1 prio, does not fully solve the problem.
we can have another routed prefix that would fall at the same
priority as the nat one and if the subnets are overlapping the
packets would take the non nat path.

In bosch they had
nw_dst=10.128.0.0/9 non-nat
nw_dst=10.0.0.0/9 non-nat
nw_dst=10.0.0.0/8 nat

with current code this would result in all the 3 flows to use prio=159 which
makes it non deterministic and back to the original problem we had.
I took this approach initially because we did not have a big enough hole
for all the priorities esp for v6.

But since it does not work the fix considered 2 designs
- assign nat priorities dynamically based on subnet/prefix of existing
  routed flows.
- move ext subnet routed prio down from 150 to 40 to create a window
  big enough to satisfy v6.

The first approach needs tracking subnet/prefix and dynamically
computing overlapping nat subnet/prefix prio based on that. however
as far as total priorities we might need in worst case goes its same
as the second approach.

Signed-off-by: Madhu Challa <challa@gmail.com>

24005 of 30287 relevant lines covered (79.26%)

2418.98 hits per line

Source Files on job 2073.1 (TEST_SUITE=travis-build.sh)
  • Tree
  • List 0
  • Changed 121
  • Source Changed 1
  • Coverage Changed 121
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1444
  • Travis Job 2073.1
  • 5deb5d4c on github
  • Prev Job for TEST_SUITE=travis-build.sh on 5.2.1.0 (#2062.1)
  • Next Job for TEST_SUITE=travis-build.sh on 5.2.1.0 (#2074.1)
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