mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: batman_adv: cleanup according to PEP8
Signed-off-by: Markus Hauschild <markus@moepman.eu>
This commit is contained in:
@@ -22,10 +22,9 @@ except (ImportError, ModuleNotFoundError):
|
||||
from ifupdown.exceptions import moduleNotSupported
|
||||
import ifupdown.ifupdownflags as ifupdownflags
|
||||
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
|
||||
class batman_adv(Addon, moduleBase):
|
||||
@@ -250,7 +249,6 @@ class batman_adv(Addon, moduleBase):
|
||||
if ifaceobj.addr_method == 'manual':
|
||||
netlink.link_set_updown(ifaceobj.name, "up")
|
||||
|
||||
|
||||
def _down(self, ifaceobj):
|
||||
if not ifupdownflags.flags.PERFMODE and not self.cache.link_exists(ifaceobj.name):
|
||||
return
|
||||
@@ -262,7 +260,6 @@ class batman_adv(Addon, moduleBase):
|
||||
# The main interface will automagically vanish after the last member
|
||||
# interface has been deleted.
|
||||
|
||||
|
||||
def _query_check(self, ifaceobj, ifaceobjcurr):
|
||||
if not self.cache.link_exists(ifaceobj.name):
|
||||
return
|
||||
|
Reference in New Issue
Block a user