daemon: refactored TunTap setaddrs to set_ips to be more consistent with new naming

This commit is contained in:
Blake Harnden 2020-06-19 13:52:59 -07:00
parent f07176dd43
commit cfda9509a2
2 changed files with 3 additions and 3 deletions

View file

@ -157,7 +157,7 @@ class EmaneNet(CoreNetworkBase):
)
external = config.get("external", "0")
if isinstance(iface, TunTap) and external == "0":
iface.setaddrs()
iface.set_ips()
if not self.session.emane.genlocationevents():
iface.poshook = None
continue

View file

@ -529,9 +529,9 @@ class TunTap(CoreInterface):
self.node.node_net_client.device_name(self.localname, 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
"""