RemoteNetworkInterface#
- class wattson.cosimulation.simulators.network.components.remote.remote_network_interface.RemoteNetworkInterface(entity_id: str, wattson_client: WattsonClient, auto_sync: bool = True)#
Bases:
RemoteNetworkEntity
,NetworkInterface
Methods
Set the interface down
get_ip_address
get_link
get_mac_address
get_node
get_subnet_prefix_length
get_system_name
- returns:
True iff this interface has an IP address assigned
Update the ip address of this interface
Set the interface up
Attributes
interface_name
Returns: bool: True iff this interface belongs to the management network
link
node
- __init__(entity_id: str, wattson_client: WattsonClient, auto_sync: bool = True)#
- down()#
Set the interface down
- has_ip() bool #
- Returns:
True iff this interface has an IP address assigned
- Return type:
bool
- property is_management: bool#
Returns: bool: True iff this interface belongs to the management network
- set_ip_address(ip_address: IPv4Address | None)#
Update the ip address of this interface
- Parameters:
ip_address (Optional[ipaddress.IPv4Address]) – The ip to use or None
- up()#
Set the interface up