-
Notifications
You must be signed in to change notification settings - Fork 97
Fix check for routed native vlan support #441
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
Conversation
| if 'mode' in intf.vlan and not get_from_box(intf_data,'vlan.mode'): | ||
| intf_data.vlan.mode = intf.vlan.mode # vlan.mode is inherited from trunk dictionary or parent interface | ||
|
|
||
| if interface_vlan_mode(intf_data,intf_node,topology) == 'bridge': # Is this VLAN interface in bridge mode? |
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.
This also fixes a bug where vlan.mode was only being checked for the access vlan, instead of the vlan being processed
|
Before acting on this, I want to make sure we're talking about the same thing. I added two test cases in 7a6e1b1, one testing vlan.mixed_trunk feature flag, the other one testing vlan.native_routed feature flag. I verified that FRR and IOSv pass both test cases, and that the lack of feature flag results in an error in the expected test case. It might be that you're trying to detect a different problem, in which case we have to go back to the drawing board. |
|
It’s the vlan-routed-native.yml test case which is mentioned in that commit, but not newly added Using srlinux as a device type with that case should throw an error, it doesn’t (or didn’t when I tested it last) |
|
Are you telling me that SR Linux cannot handle the "ros" device in I did find a problem or two when trying to get this to work on Arista though, so I'll open separate issues for that. |
|
Yes, that is exactly what I'm saying: That test case cannot be provisioned like that on SR Linux (at least not for the default 'ixrd2' device type) For each interface, there is a |
8bb6f28 to
3aac94e
Compare
|
This has been fixed in b26e12b |
Move the check earlier, before any transformation logic removes the native vlan
With this patch:
Without it, no error is generated