daemon: refactored TunTap setaddrs to set_ips to be more consistent with new naming
This commit is contained in:
parent
f07176dd43
commit
cfda9509a2
2 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ class EmaneNet(CoreNetworkBase):
|
||||||
)
|
)
|
||||||
external = config.get("external", "0")
|
external = config.get("external", "0")
|
||||||
if isinstance(iface, TunTap) and external == "0":
|
if isinstance(iface, TunTap) and external == "0":
|
||||||
iface.setaddrs()
|
iface.set_ips()
|
||||||
if not self.session.emane.genlocationevents():
|
if not self.session.emane.genlocationevents():
|
||||||
iface.poshook = None
|
iface.poshook = None
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -529,9 +529,9 @@ class TunTap(CoreInterface):
|
||||||
self.node.node_net_client.device_name(self.localname, self.name)
|
self.node.node_net_client.device_name(self.localname, self.name)
|
||||||
self.node.node_net_client.device_up(self.name)
|
self.node.node_net_client.device_up(self.name)
|
||||||
|
|
||||||
def setaddrs(self) -> None:
|
def set_ips(self) -> None:
|
||||||
"""
|
"""
|
||||||
Set interface addresses.
|
Set interface ip addresses.
|
||||||
|
|
||||||
:return: nothing
|
:return: nothing
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue