failed to re-deploy vSIM (vrnetlab based) with --node-filter
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
I believe this should be the solution, unless something is borked at the ctr level.
https://github.com/srl-labs/vrnetlab/pull/285
also we will focus on sr-sim