Coder Social home page Coder Social logo

Comments (2)

tcaiazzi avatar tcaiazzi commented on June 16, 2024

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:

def disconnect_machine_from_link(self, machine: Machine, link: Link) -> None:
"""Disconnect a Kathara device from a collision domain.
Args:
machine (Kathara.model.Machine): A Kathara machine object.
link (Kathara.model.Link): The Kathara collision domain from which disconnect the device.
Returns:
None
Raises:
LabNotFoundError: If the device specified is not associated to any network scenario.
LabNotFoundError: If the collision domain is not associated to any network scenario.
MachineCollisionDomainConflictError: If the device is not connected to the collision domain.
"""
self.manager.disconnect_machine_from_link(machine, link)

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

from kathara.

BMG-DYNAMIT avatar BMG-DYNAMIT commented on June 16, 2024

Thanks for the help!

It works now,

Moritz

from kathara.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.