-
Notifications
You must be signed in to change notification settings - Fork 112
fix: allow use of built-in routing tables #804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow use of built-in routing tables #804
Conversation
Cause: The user is trying to specify the routing table to use by the name of a built-in routing table defined in /usr/share/iproute2/rt_tables such as `main`. Consequence: The network role gives an error: "cannot find route table main in `/etc/iproute2/rt_tables` or `/etc/iproute2/rt_tables.d/`" The workaround is that the user must specify the table by number instead of name e.g `table: 254` instead of `table: main` Fix: Look for table mappings in /usr/share/iproute2/rt_tables as well as the other paths. Result: The user can use built-in route table names. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's GuideExtend route table mapping to recognize built-in tables from /usr/share/iproute2/rt_tables and update tests to verify both built-in (‘main’) and custom named table functionality. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
==========================================
+ Coverage 43.11% 43.24% +0.12%
==========================================
Files 12 12
Lines 3124 3122 -2
==========================================
+ Hits 1347 1350 +3
+ Misses 1777 1772 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
[citest] |
|
[citest_bad] |
1 similar comment
|
[citest_bad] |
|
[citest] |
|
cs9 failing - looks like the highavailability repo config is messed up again :-( |
Cause: The user is trying to specify the routing table to use by the name of
a built-in routing table defined in /usr/share/iproute2/rt_tables such as
main.Consequence: The network role gives an error:
"cannot find route table main in
/etc/iproute2/rt_tablesor/etc/iproute2/rt_tables.d/"The workaround is that the user must specify the table by number instead of name e.g
table: 254instead oftable: mainFix: Look for table mappings in /usr/share/iproute2/rt_tables as well as the other
paths.
Result: The user can use built-in route table names.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Enable specifying built-in route tables by name by loading mappings from the system rt_tables file and validate the behavior with new tests
Bug Fixes:
Enhancements:
Tests: