RemoteNetworkLink#
- class wattson.cosimulation.simulators.network.components.remote.remote_network_link.RemoteNetworkLink(entity_id: str, wattson_client: WattsonClient, auto_sync: bool = True)#
Bases:
RemoteNetworkEntity,NetworkLinkMethods
Set the link state to "down", i.e., disabling the link
get_interface_aget_interface_bget_link_modelget_link_stateGiven a valid interface, returns the other interface connected forming this link.
is_upSet the link state to "up", i.e., enabling the link
update_from_remote_representationAttributes
interface_ainterface_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