-
Notifications
You must be signed in to change notification settings - Fork 449
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
Network: Add support for parsing multipath routing #1736
Conversation
Thanks Phil! Updated with your suggestions |
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.
Code looks good, sorry I missed the lack of v4-test below, but I suspect that's gonna be the most-commonly-used path in the code, so lets just have a test for it as well?
Signed-off-by: Anita Zhang <[email protected]>
There was an existing test case for multipath IPv4 but without the extra options on the first line (line 165 of network_spec.rb). The IPv4 test case I just added includes options. |
Looks great. I'll merge when tests pass. I'm out of town this weekend so feel free to poke me next week if I haven't merged. |
@anitazha is this something we'd want to backport to Ohai 16 and 17? |
@tas50 It could be useful to have since any default IPv6 routes with options using multipath just break without it. But I think multipath routing isn't super widely used so most people won't run into it. |
Signed-off-by: Anita Zhang <[email protected]>
Signed-off-by: Anita Zhang [email protected]
Description
We have some hosts using multipath routing and the network plugin is failing to set any interface information for the interfaces with such multipath configuration. This PR updates
check_routing_table()
in the network plugin to support multipath routing.Related Issue
Types of changes
Checklist: