NetworkLink#
- class wattson.cosimulation.simulators.network.components.interface.network_link.NetworkLink#
Bases:
NetworkEntity,ABCMethods
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
Attributes
id- abstract down()#
Set the link state to “down”, i.e., disabling the link
- get_other_interface(interface: NetworkInterface) NetworkInterface#
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’
- abstract up()#
Set the link state to “up”, i.e., enabling the link