Skip to content

Kathara.model.ExternalLink

Tommaso Caiazzi edited this page Jul 21, 2023 · 8 revisions

module Kathara.model.ExternalLink

Global Variables

  • MAX_INTERFACE_NAME_LENGTH

class ExternalLink

A Kathara external collision domain. It is used to create a collision domain attached to a host interface.

method ExternalLink.__init__

__init__(interface: str, vlan: Optional[int] = None) → None

method ExternalLink.get_full_name

get_full_name() → str

Return the external collision domain full name in the format: |name|.|vlan_tag|.

Returns:

  • (str): The external collision domain full name

method ExternalLink.get_name_and_vlan

get_name_and_vlan() → Tuple[str, Optional[int]]

Return a tuple composed by the name of the attached interface and, if present, the vlan tag.

The interface name is computed appending the interface name to the vlan tag (if present). If the length of interface name + vlan tag is more than 15 chars, the interface name is truncated in order to fit the whole string in 15 chars (due to Linux limitations).

Returns:

  • Tuple[str, Optional[int]]: A tuple composed by the name of the attached interface and the vlan tag.

This file was automatically generated via lazydocs.

Clone this wiki locally