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

Set next hop to something valid for vxlan routes #1347

Merged
merged 4 commits into from
Jan 6, 2021
Merged

Set next hop to something valid for vxlan routes #1347

merged 4 commits into from
Jan 6, 2021

Conversation

malanovo
Copy link
Contributor

This is a small change that stops Napalm from bombing out on EOS when attempting a get_route_to() on a VXLAN route, and inserts some values that make it useful. The next hop is set to the IP of the destination VTEP, and the exit interface is set to vxlan1. Granted we're assuming the interface name will be vxlan1, but at the moment, that's all it can be on EOS. It might need alteration in the future if Arista changes that.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling fb052b5 on malanovo:route-to-vxlan into 5a2adcb on napalm-automation:develop.

@coveralls
Copy link

coveralls commented Dec 29, 2020

Coverage Status

Coverage increased (+0.01%) to 81.086% when pulling 394be2b on malanovo:route-to-vxlan into 13e8d5e on napalm-automation:develop.

Copy link
Member

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @malanovo, I think your changes make sense. Would you also be able to add a test case for this? Thanks.

@malanovo
Copy link
Contributor Author

Sure, I can work on that. I've got several devices I can pull from for an example.

@malanovo
Copy link
Contributor Author

malanovo commented Jan 5, 2021

Test case has been added. Please note that the test case relies on the fix for issue #1069 having been applied (which was just recently merged into the develop branch).

Copy link
Member

@mirceaulinic mirceaulinic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks @malanovo!

@mirceaulinic mirceaulinic merged commit 236be57 into napalm-automation:develop Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants