Replies: 7 comments 12 replies
-
(current workaround:
) |
Beta Was this translation helpful? Give feedback.
-
At the code level, everything should happen here: netlab/netsim/augment/links.py Line 175 in ed204b8 But I don't know if it makes sense to add an additiona pdata attribute to be used as additional offset? |
Beta Was this translation helpful? Give feedback.
-
I had a similar situation on SR OS, where port names depend on the ifindex range (e.g. "1/1/1" for regular ports, "1/1/c32/1" for some higher speed special connectors) My solution was to apply For example:
Perhaps this could work here too, e.g. |
Beta Was this translation helpful? Give feedback.
-
I knew that it was a bad idea packing VMs into containers, but why would anyone ever listen to a GONER... The simplest hack would be to use |
Beta Was this translation helpful? Give feedback.
-
The interface name fix is in: 5baae51. Now you can use @ssasso: Will you add vMX as a supported platform? |
Beta Was this translation helpful? Give feedback.
-
I can add the "official" support for vMX for sure, starting from the interface name fix. But, first of all, I'll open another discussion for defining how to handle different Juniper products with less work but keeping everything consistent. |
Beta Was this translation helpful? Give feedback.
-
Implemented in 322e3f6 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to understand if and how it's possible to handle the
ifindex_offset
in the clab links/endpoints data generation differently than the main topology data.With some containers that are build with vrnetlab, eth0 is the container management interface, and eth1,2,3 are the "data ports".
However, this may clash with some device's ifindex_offset when is set to 0.
In example, trying to use the Juniper vMX (borrowing all the data from the vSRX model), I have the following topology.yml:
Which will result in this clab file:
Which is wrong on the "eth0" interface name for the container.
At the same time, if I increment the ifindex_offset to 1, then the endpoints are correct:
but the result is a wrong interface configuration (see the following extract from r1 host_vars):
(the interface shall be
ge-0/0/0
)@ipspace @jbemmel did you aready encountered such situation with clab? any idea on how this can be quickly solved?
Beta Was this translation helpful? Give feedback.
All reactions