Replies: 4 comments 12 replies
-
I'm pretty sure we had another version of this same discussion in which you argued the group VLANs have to be copied into global VLANs so you can define VLANs in groups for whatever EVPN scenario. I remember having to reorganize quite a bit of stuff to make that work. On a more constructive note: could you set the VLAN ID in global vlans.v1 and the desired prefix in groups.g1.vlans.v1 for group g1? |
Beta Was this translation helpful? Give feedback.
-
I was able to group members into vlans by grouping through link groups. vlans: V2: !
Doesnt this accomplish the same goal? It works as of right now, and it applies the different prefixes; so stuff wouldn't have to be moved around. |
Beta Was this translation helpful? Give feedback.
-
@Astrotokii -- thanks a million. In a nutshell, the trick is to use different VLAN names but the same VLAN ID. |
Beta Was this translation helpful? Give feedback.
-
@Astrotokii: the root cause for the described behavior (and the recommendation) is the way netlab figures out what a node neighbors are (for example, to set up BGP neighbors or to figure out if an OSPF interface should be a stub interface). Instead of implementing a connectivity graph traversal routine, I decided to go with "we're assuming a VLAN is contiguous". As this discussion shows, we can get away with reusing the VLAN ID for multiple VLANs, but netlab still assumes each VLAN is contiguous. I would have to look into the code (or run a few tests) to figure out whether the "contiguous VLAN" assumption applies to VLAN name or ID, but will leave that to anyone who likes to ignore the documentation and live on the bleeding edge ;)) |
Beta Was this translation helpful? Give feedback.
-
I would like to configure the default VLAN 1 with a different prefix for different groups:
Unfortunately, this doesn't work:
netlab/netsim/modules/vlan.py
Line 1274 in b76b2bd
prefix
isn't copied, but it's still not allowed to set a prefix for "global" vlan v1As a workaround, one can define the VLAN at each node instead - but I'm wondering if it wouldn't be better to change the logic in
export_group_node_data
to not create a global vlan if one doesn't exist alreadyBeta Was this translation helpful? Give feedback.
All reactions