-
Notifications
You must be signed in to change notification settings - Fork 72
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
[BUG] P2P links wrongly marked as 'multi-provider' LAN links #1658
Comments
Potential fix in providers/__init__.py: """
Generic provider pre-transform processing: Mark multi-provider links
"""
def pre_transform(self,topology : Box) -> None:
if not 'links' in topology:
return
for l in topology.links:
providers = {}
for intf in l.interfaces:
node = topology.nodes[intf.node]
provider = node.get('provider',topology.provider)
providers[provider] = True # Take note of providers being used
if len(providers)<=1:
continue # Not a multi-provider link - continue
p_name = topology.provider # Get primary and secondary provider
for s_name in providers.keys(): # ... to make the rest of the code more readable
if s_name!=p_name:
l[p_name].provider[s_name] = True # Collect secondary link provider(s)
if 'uplink' in l[p_name]: # ... and copy primary uplink to secondary uplink
l[s_name].uplink = l[p_name].uplink |
This has been discussed previously. The link type does not matter for containerlab, and the default prefix pool is selected based on the number of attached nodes not the link type since #1673. While this issue is technically correct, it's also irrelevant at the moment. |
I disagree. The bridge needlessly breaks LACP between MLAG peers when using containers for devices like Dell OS10 or Arista EOS |
You can disagree all you want, but the fact remains that a linux bridge is not used by containerlab configuration template when there are only two containers connected to a link. |
Now that the LAG link type is no longer used, the last vestiges of disagreements should be gone 🤪 |
We’ll find something else, don’t worry :) We disagree, therefore we are |
Lab topology
Output
For host_vars/c1/topology.yml
Version: netlab
dev
branchThe text was updated successfully, but these errors were encountered: