mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Misc fixes + ifreload new option + cleanups + more ifquery support etc
Ticket: CM-3346, CM-3784, CM-3841 Reviewed By: Testing Done: various ifupdown2 tests
This commit is contained in:
@@ -30,6 +30,9 @@ class vlan(moduleBase):
|
||||
moduleBase.__init__(self, *args, **kargs)
|
||||
self.ipcmd = None
|
||||
self._bridge_vids_query_cache = {}
|
||||
self._resv_vlan_range = self._get_reserved_vlan_range()
|
||||
self.logger.debug('%s: using reserved vlan range %s'
|
||||
%(self.__class__.__name__, str(self._resv_vlan_range)))
|
||||
|
||||
def _is_vlan_device(self, ifaceobj):
|
||||
vlan_raw_device = ifaceobj.get_attr_value_first('vlan-raw-device')
|
||||
@@ -197,6 +200,7 @@ class vlan(moduleBase):
|
||||
def _init_command_handlers(self):
|
||||
if not self.ipcmd:
|
||||
self.ipcmd = iproute2(**self.get_flags())
|
||||
|
||||
|
||||
def run(self, ifaceobj, operation, query_ifaceobj=None, **extra_args):
|
||||
""" run vlan configuration on the interface object passed as argument
|
||||
|
Reference in New Issue
Block a user