RemoteNetworkLink#
- class wattson.cosimulation.simulators.network.components.remote.remote_network_link.RemoteNetworkLink(entity_id: str, wattson_client: WattsonClient, auto_sync: bool = True)#
Bases:
RemoteNetworkEntity
,NetworkLink
Methods
Set the link state to "down", i.e., disabling the link
get_interface_a
get_interface_b
get_link_model
get_link_state
Given a valid interface, returns the other interface connected forming this link.
is_up
Set the link state to "up", i.e., enabling the link
update_from_remote_representation
Attributes
interface_a
interface_b
- down()#
Set the link state to “down”, i.e., disabling the link
- get_other_interface(interface: RemoteNetworkInterface) RemoteNetworkInterface #
Given a valid interface, returns the other interface connected forming this link. In case the given interface is not part of this link, interface A is returned.
- Parameters:
interface ('NetworkInterface') – One interface that forms the link
- Returns:
The other interface forming the link.
- Return type:
‘NetworkInterface’
- up()#
Set the link state to “up”, i.e., enabling the link