fix port/nic enable/disable actions returning failure when they succeed
This commit is contained in:
@@ -519,12 +519,10 @@ class IPWiredNetworkInterface(WiredNetworkInterface, Layer3Interface, ABC):
|
|||||||
"""
|
"""
|
||||||
super().enable()
|
super().enable()
|
||||||
try:
|
try:
|
||||||
pass
|
|
||||||
self._connected_node.default_gateway_hello()
|
self._connected_node.default_gateway_hello()
|
||||||
return True
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
return False
|
return True
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def receive_frame(self, frame: Frame) -> bool:
|
def receive_frame(self, frame: Frame) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user