-
Notifications
You must be signed in to change notification settings - Fork 64
Kathara.model.ExternalLink
Tommaso Caiazzi edited this page Sep 30, 2022
·
8 revisions
- MAX_INTERFACE_NAME_LENGTH
A Kathara external collision domain. It is used to create a collision domain attached to a host interface.
__init__(interface: str, vlan: Optional[int] = None) → None
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
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.
Website: kathara.org
Contact us: [email protected]