Repository navigation
refactor: update containerlab provider to use frr kind for frr device… - #3940
Muddyblack wants to merge 1 commit into
Conversation
…s and bump version to 0.80.0
| node: | ||
| kind: linux | ||
| kind: frr | ||
| config_templates: |
There was a problem hiding this comment.
This needs to change too for the new frr kind, Containerlab has something built-in for it
| @@ -340,7 +336,7 @@ frr: | |||
| image: frrouting/frr:v8.3.1 | |||
There was a problem hiding this comment.
I understood there is a special containerlab release version for this image
There was a problem hiding this comment.
It does add ssh and stuff I will test if it is really required or not.
I mean its nice to have anyways all my frr images are built with ssh and iperf3 and some other stuff
There was a problem hiding this comment.
It already worked without the clab image before but needed before pausing restarting a node to manually run write memory and then run vtysh -f /etc/frr/frr.conf.
There was a problem hiding this comment.
So I tested it with a plain frr 10.7.1 no containerlab-frr and if using the frr kind and doing a containerlab save all worked .
same for the extras.frr.daemons
| Node | Daemons running | Memory |
|---|---|---|
extras.frr.daemons: [ospfd] |
mgmtd, ospfd, staticd, watchfrr, zebra |
18.8 MiB |
| default (no selection) | all 19 | 73.2 MiB |
There was a problem hiding this comment.
As far as I understand this clab frr image is just so you can run their normal clab stuff like ssh admin@<node> as they usually support ssh jump for any kind.
Without that then only docker exec shell variant works...
Since netlab configures all using the docker shell anyways we do not really care no?
The other thing I honestly have no knowledge about seems to be the netlab_mgmt_vrf for clab? but netlab handles this already I think.
There was a problem hiding this comment.
As far as I understand this clab frr image is just so you can run their normal clab stuff like
ssh admin@<node>as they usually support ssh jump for any kind.
Correct.
Since netlab configures all using the docker shell anyways we do not really care no?
Also correct.
The other thing I honestly have no knowledge about seems to be the netlab_mgmt_vrf for clab? but netlab handles this already I think.
Also correct.
|
There are three things to unpack here:
While I have no problem supporting For the moment, we might want to add Finally, the FRR container with the SSH daemon. I would document what tweaks have to be put in place to use it, or maybe we can install them in a device quirk if someone sets (for example) |
|
So the |
|
So with netlab initial using Also if running manually |
|
So maybe do the mapping stuff for the see
|
And you should have started with this bit of information. It's always nice to know there are reasons (and what they are) behind the proposed changes. However, do keep in mind that the only thing restored after the container restart is the FRR config. No data-plane feature (apart from IP addresses) is restored, thus no VLANs, VRFs, LAG, or VXLAN. It's better than nothing, but it still deserves a huge caveat. |
How about you submit the "new containerlab version" PR first (see above), and in the meantime let me think about the way to do |
I haven't played much with Is this the sort of config that should happen if the user sets |
Thanks a million. I was thinking more about "if someone chose the container with SSH server, we can tweak the parameters so they connect via ssh", but I'm sure your code will come handy. It's just that I don't want to download/install SSH every time an FRR container is started. |
…s and bump version to 0.80.0