mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: batman_adv: fix unresolved reference
Signed-off-by: Markus Hauschild <markus@moepman.eu>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
try:
|
||||
from ifupdown2.lib.addon import Addon
|
||||
|
||||
from ifupdown2.nlmanager.nlmanager import NetlinkManager
|
||||
from ifupdown2.ifupdown.iface import *
|
||||
from ifupdown2.ifupdown.utils import utils
|
||||
from ifupdown2.ifupdownaddons.modulebase import moduleBase
|
||||
@@ -16,6 +17,7 @@ try:
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
from lib.addon import Addon
|
||||
|
||||
from nlmanager.nlmanager import NetlinkManager
|
||||
from ifupdown.iface import *
|
||||
from ifupdown.utils import utils
|
||||
from ifupdownaddons.modulebase import moduleBase
|
||||
@@ -247,6 +249,7 @@ class batman_adv(Addon, moduleBase):
|
||||
self._set_batman_attr(ifaceobj, attr, value_cfg)
|
||||
|
||||
if ifaceobj.addr_method == 'manual':
|
||||
netlink = NetlinkManager()
|
||||
netlink.link_set_updown(ifaceobj.name, "up")
|
||||
|
||||
def _down(self, ifaceobj):
|
||||
|
Reference in New Issue
Block a user