Replies: 4 comments 2 replies
-
I can't figure out why I added that particular code (apart from maybe "let's handle all possible scenarios") as you probably can't configure IPv4 /32 or IPv6 /128 on a physical interface of any sane platform. However, if this becomes a mechanism that's in the netlab core (as opposed to SR Linux J2 template), then it needs to be documented and implemented on multiple platforms, and we need to know how to name loopbacks, and we might need yet another address pool... so let's start with the bigger picture. Why would you need additional loopbacks (as opposed to stub links that create additional subnets to be advertised)? The whole "let's turn regular interfaces into loopbacks" SR Linux saga started because containerlab could not create stub networks, but that's solved now. Is there something else? I think @ssasso had a similar challenge a while ago, but can't remember if that was just VRF loopbacks which got added or something else? |
Beta Was this translation helpful? Give feedback.
-
Loopbacks are different than stub links - they are not associated with a physical port, so you can have many more of them. Stub links generate veth pairs and dummy bridges, in my case I just need something to ping. And as a user my intention is to create a loopback interface - I know they exist, I've used them many times - and now Netlab is blocking me from creating one. That's just frustrating |
Beta Was this translation helpful? Give feedback.
-
OK, I will see how hard it would be to allow 'type: loopback' on links. |
Beta Was this translation helpful? Give feedback.
-
Added in release 1.5.1 |
Beta Was this translation helpful? Give feedback.
-
netlab/netsim/augment/links.py
Line 240 in df7818e
At this point, if 'lb' is True could we convert 'stub' into 'loopback':
For srlinux I currently have to do this internally, as /32 addresses are not supported on regular interfaces.
Alternatively, what would be the way to declare additional loopback interfaces?
Beta Was this translation helpful? Give feedback.
All reactions