Skip to content
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

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

anitazha
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@anitazha anitazha requested review from a team as code owners February 17, 2022 22:43
@anitazha
Copy link
Contributor Author

Thanks Phil! Updated with your suggestions

Copy link
Collaborator

@jaymzh jaymzh left a 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?

@anitazha
Copy link
Contributor Author

anitazha commented Feb 24, 2022

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.

@jaymzh
Copy link
Collaborator

jaymzh commented Feb 25, 2022

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.

@jaymzh jaymzh merged commit 507533a into chef:main Feb 25, 2022
@tas50
Copy link
Contributor

tas50 commented Feb 25, 2022

@anitazha is this something we'd want to backport to Ohai 16 and 17?

@anitazha
Copy link
Contributor Author

@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.

tas50 pushed a commit that referenced this pull request Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants