Cumulus Point to point links with switch port specified #1452
Replies: 6 comments 7 replies
-
Some observations,
Also, how can I configure them as unnumbered? |
Beta Was this translation helpful? Give feedback.
-
You're doing exactly the right thing, but there's a gotcha -- the static "ifindex" changes the interface name in device configuration, but not necessarily the underlying virtualization configuration. It works well with physical devices (for obvious reasons), and it works with containers (because containerlab allows us to name the container Ethernet interfaces whatever we wish), but not with VMs. When using VMs, we configure the VM interfaces linearly from the node interfaces list, and the VM operating system maps those virtual NIC cards into interface names in whatever way it wishes. I see two potential ways to solve this:
It would be ideal if you could figure out how to do #2 ;) and then I could integrate that into the initial configuration template, or I could write a plugin (because I'm not sure I want to have that as part of core functionality) to do #1. Finally, it seems you're using a really old way of specifying the nodes. It would be great if you could point me to where you found it so I could fix that. A much simpler way of specifying the nodes is with a dictionary. Instead of:
... you could have:
|
Beta Was this translation helpful? Give feedback.
-
Hey Ivan, Please excuse my lack of understanding. Its only been a few months of me working with Cumulus. I have taken it over from someone who was not very forthcoming with information. I have no idea how I would even approach #2. With regards to #1, Do you mean I add bogus interfaces from swp1 to swp5 on router1? Can you give me an example of how the topology file would look in that case? With respect to the format, I can not seem to re-collect where i picked it from, obviously some example but I am just not able to get the link. |
Beta Was this translation helpful? Give feedback.
-
Ok, some progress this works. ---
provider: libvirt
defaults.device: cumulus_nvue
nodes:
router1:
image: CumulusCommunity/cumulus-vx:5.10.0
router2:
image: CumulusCommunity/cumulus-vx:5.10.0
links:
- router1:
ifindex: 1
- router2:
ifindex: 1
- router1:
ifindex: 2
router2:
ifindex: 2
|
Beta Was this translation helpful? Give feedback.
-
Adding the mock interfaces works. But i am just thinking about scalability. My lab has about 80 devices and each device has about 40 ports. Just worried that my topology file is going to become too huge to manage pretty quick. While using vanilla Vagrant, I notice that it manages to create only interfaces which are specified. Below is the vagrant file maybe that helps figure out what we need to do to make it work in networklab?
The other small improvement we can certainly make is avoiding to template out the provisioning script for each device in the Vagrantfile. |
Beta Was this translation helpful? Give feedback.
-
Implemented in cba50fb, documentation in https://github.com/ipspace/netlab/blob/cba50fbcc4afb752b5bffeaf5fffb00a6c798124/docs/links.md#changing-interface-names You can try it out in a local copy of the GitHub repo (https://netlab.tools/install/clone/) or wait for the next release (coming in early November) |
Beta Was this translation helpful? Give feedback.
-
Hey All,
I have a rather large cumulus environment that we are looking to lab out and maintain as a digital twin. Currently we are using vanilla Vagrant and the topology convert that Cumulus provides. I would love to move to netlab as it seems more manageable but having one issue.
I want to be able to specify connectivity between by specifying the port number.
For example , if i wanted
swp6
on router1 connect toswp7
on router2, what I gather from the documentation is I would define my topology like the below? All of my links are either Layer2 or unnumbered. We run a vxlan fabric. Any help on this would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions