daemon: cleaned up InterfaceData class, it now leverages dataclass, removed extra bloat and no longer requires parameters as they are optional
This commit is contained in:
parent
6ddf1ac9a4
commit
18044f9474
5 changed files with 31 additions and 85 deletions
|
@ -21,7 +21,7 @@ _MOBILITY_FILE = os.path.join(_PATH, "mobility.scen")
|
|||
_WIRED = [PtpNet, HubNode, SwitchNode]
|
||||
|
||||
|
||||
def ping(from_node, to_node, ip_prefixes):
|
||||
def ping(from_node: CoreNode, to_node: CoreNode, ip_prefixes: IpPrefixes):
|
||||
address = ip_prefixes.ip4_address(to_node)
|
||||
try:
|
||||
from_node.cmd(f"ping -c 1 {address}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue