Closed BMG-DYNAMIT closed 4 months ago
Hi @BMG-DYNAMIT,
Thanks for opening the issue!
To undeploy a link, first you must undeploy all the devices attached to it.
To disconnect a device from a link, you can use the disconnect_machine_from_link
method:
https://github.com/KatharaFramework/Kathara/blob/362ba16f96c753a8f48cfea98115be5375eb38d9/src/Kathara/manager/Kathara.py#L108-L123
After all the devices connected to the link are disconnected, you can undeploy the link.
We will update the undeploy_link
method's documentation to make that clear.
Thanks, Tommaso
Thanks for the help!
It works now,
Moritz
Operating System
Ubuntu 22.04
Kathará Version
3.7.4
Bug Description
If I deploy a lab and remove a link with
Kathara.get_instance().undeploy_link()
the link does not get removed and still exists after that.Steps To Reproduce
Try the following test script:
The Link with the name "A" does not get removed by undeploy_link().
It does not work neither with docker or kubernetes.
Expected Behavior
The Link with the name "A" should be undeployed.
Check Command Output