Skip to content

Unable to destroy lab after changing node name when it is running #2892

@piotrjurkiewicz

Description

@piotrjurkiewicz

I accidentally changed the name of one of nodes in clab.yaml file when the lab was deployed. Now I am unable to fully destroy the lab, as the destroy command leaves the old-named node existing. Running the destroy command with --name and --keep-mgmt-net does not help.

I my opinion clab.yaml files should be only used for deployment. After that, containerlab should remember what topology it is running for each lab and use that knowledge during destroy (so destroy command should operate on lab names, not on topology files).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions