facility_port¶
This module contains methods to work with FABRIC facility ports.
- class fabrictestbed_extensions.fablib.facility_port.FacilityPort(slice: Slice, fim_interface: FimNode)¶
- Parameters:
slice (Slice) – the fablib slice to have this node on
fim_interface (FimInterface)
- __str__()¶
Creates a tabulated string describing the properties of the node. Intended for printing node information.
- Returns:
Tabulated string of node information
- Return type:
String
- static get_facility_port(slice: Slice = None, facility_port: FimNode = None)¶
- Parameters:
slice
facility_port
- Returns:
- get_interfaces() List[Interface] ¶
Gets a particular interface associated with a FABRIC node.
Accepts either the interface name or a network_name. If a network name is used this method will return the interface on the node that is connected to the network specified. If a name and network_name are both used, the interface name will take precedence.
- Parameters:
name (str) – interface name to search for
network_name – network name to search for
- Raises:
Exception – if interface is not found
- Returns:
an interface on the node
- Return type:
- get_name() str ¶
Gets the name of the FABRIC node. :return: the name of the node :rtype: String