containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

failed to re-deploy vSIM (vrnetlab based) with --node-filter

Open oscarjmartin opened this issue 2 years ago • 1 comments

Need to re-deploy just one vSIM (vrnetlab based) instance from an already deployed lab.

In a first step vSIM instance is successfully destroyed:

clab destroy --node-filter <vSIM_name> -t <topology_filename>.yml INFO[0000] Applying node filter: ["<vSIM_name>"] INFO[0000] Parsing & checking topology file: <topology_filename>.yml INFO[0000] Destroying lab: <lab_name> INFO[0001] Removed container: <container_name> INFO[0001] Removing containerlab host entries from /etc/hosts file

However re-deploy fails with the following error:

clab deploy --node-filter <vSIM_name> -t <topology_filename>.yml INFO[0000] Containerlab v0.44.3 started INFO[0000] Applying node filter: ["<vSIM_name>"] INFO[0000] Parsing & checking topology file: <topology_filename>.yml Error: the '<lab_name>' lab has already been deployed. Destroy the lab before deploying a lab with the same name

Re-deploy was also attemped from containerlab versions 0.41.2 down to 0.39.0 (earliest one supporting --node-filter) with identical results.

Cheers

oscarjmartin avatar Sep 20 '23 16:09 oscarjmartin

I believe this should be the solution, unless something is borked at the ctr level.

https://github.com/srl-labs/vrnetlab/pull/285

kaelemc avatar Sep 28 '25 13:09 kaelemc

also we will focus on sr-sim

hellt avatar Jan 11 '26 19:01 hellt