daemon: renamed executable variables to be simpler
This commit is contained in:
parent
8f19ad057c
commit
6dd6bc87ab
8 changed files with 74 additions and 86 deletions
|
@ -7,7 +7,7 @@ from lxml import etree
|
|||
|
||||
from core import utils
|
||||
from core.emane.nodes import EmaneNet
|
||||
from core.executables import IP_BIN
|
||||
from core.executables import IP
|
||||
from core.nodes.base import CoreNodeBase, NodeBase
|
||||
from core.nodes.interface import CoreInterface
|
||||
|
||||
|
@ -83,7 +83,7 @@ def get_address_type(address: str) -> str:
|
|||
def get_ipv4_addresses(hostname: str) -> List[Tuple[str, str]]:
|
||||
if hostname == "localhost":
|
||||
addresses = []
|
||||
args = f"{IP_BIN} -o -f inet address show"
|
||||
args = f"{IP} -o -f inet address show"
|
||||
output = utils.cmd(args)
|
||||
for line in output.split(os.linesep):
|
||||
split = line.split()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue