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

__init__

down

Set the interface down

get_ip_address

get_link

get_mac_address

get_node

get_subnet_prefix_length

get_system_name

has_ip

returns:

True iff this interface has an IP address assigned

set_ip_address

Update the ip address of this interface

up

Set the interface up

Attributes

interface_name

is_management

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