-
-
Notifications
You must be signed in to change notification settings - Fork 76
Kathara.manager.kubernetes.KubernetesLink
tcaiazzi edited this page Dec 20, 2021
·
13 revisions
- MAX_K8S_LINK_NUMBER
- K8S_NET_GROUP
- K8S_NET_VERSION
- K8S_NET_PLURAL
Class responsible for interacting with Kubernetes.
__init__() → Nonecreate(link: Kathara.model.Link.Link, network_id: int) → NoneCreate a Docker Network representing the link object and assign it to link.api_object.
Args:
-
link(Kathara.model.Link.Link): A Kathara collision domain. -
network_id(int): The Network ID.
Returns: None
deploy_links(
lab: Kathara.model.Lab.Lab,
selected_links: Dict[str, Kathara.model.Link.Link] = None
) → NoneDeploy all the links contained in lab.links.
Args:
-
lab(Kathara.model.Lab.Lab): A Kathara network scenario. -
selected_links(Dict[str, Link]): Keys are Link names, values are Link objects.
Returns: None
get_links_api_objects_by_filters(
lab_hash: str = None,
link_name: str = None
) → List[Any]Return the List of Kubernetes networks.
Args:
-
lab_hash(str): The hash of a network scenario. If specified, return only the networks in the scenario, else return the networks in the 'default' namespace. -
link_name(str): The name of a network. If specified, return the specified networks of the scenario.
Returns:
-
List[Any]: A list of Kubernetes networks.
get_network_name(name: str) → strReturn the name of a Kubernetes Network.
Args:
-
name(str): The name of a Kathara Link.
Returns:
-
str: The name of the Kubernetes Network in the format "<net_prefix>-".
undeploy(lab_hash: str, networks_to_delete: Optional[Set] = None) → NoneUndeploy all the links of the scenario specified by lab_hash.
Args:
-
lab_hash(str): The hash of the network scenario to undeploy. -
networks_to_delete(Set): If specified, delete only the networks that contained.
Returns: None
wipe() → NoneUndeploy all the running networks of the specified user.
Returns: None
This file was automatically generated via lazydocs.
Website: kathara.org
Contact us: contact@kathara.org