Exemplo n.º 1
0
 def __init__(self, *args, **kargs):
     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)))
Exemplo n.º 2
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     if not os.path.exists('/sbin/ethtool'):
         raise moduleNotSupported('module init failed: no /sbin/ethtool found')
     self.ipcmd = None
     # keep a list of iface objects who have modified link attributes
     self.ifaceobjs_modified_configs = []
Exemplo n.º 3
0
 def __init__(self, *args, **kargs):
     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)))
Exemplo n.º 4
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.ipcmd = None
     purge_remotes = policymanager.policymanager_api.get_module_globals(module_name=self.__class__.__name__, attr='vxlan-purge-remotes')
     if purge_remotes:
         self._purge_remotes = utils.get_boolean_from_string(purge_remotes)
     else:
         self._purge_remotes = False
Exemplo n.º 5
0
    def __init__(self, *args, **kargs):
        moduleBase.__init__(self, *args, **kargs)
        self.ipcmd = None

        for longname, entry in self._modinfo['attrs'].items():
            if entry.get('batman-attr', False) == False:
                continue

            attr = longname.replace("batman-", "")
            self._batman_attrs[attr] = {
                'filename': attr.replace("-", "_"),
            }
Exemplo n.º 6
0
    def __init__(self, *args, **kargs):
        moduleBase.__init__(self, *args, **kargs)
        self.ipcmd = None
        self._bridge_fdb_query_cache = {}
        self.default_mtu = policymanager.policymanager_api.get_attr_default(module_name=self.__class__.__name__, attr='mtu')
        self.max_mtu = policymanager.policymanager_api.get_module_globals(module_name=self.__class__.__name__, attr='max_mtu')

        if not self.default_mtu:
            self.default_mtu = '1500'

        self.logger.info('address: using default mtu %s' %self.default_mtu)

        if self.max_mtu:
            self.logger.info('address: using max mtu %s' %self.max_mtu)
Exemplo n.º 7
0
    def __init__ (self, *args, **kargs):
    	moduleBase.__init__(self, *args, **kargs)
	self.pppcmd = pppd(**kargs)
	self.ipcmd = None;
Exemplo n.º 8
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.ipcmd = None
     self._bridge_fdb_query_cache = {}
Exemplo n.º 9
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     if not os.path.exists('/usr/bin/pon'):
         raise moduleNotSupported(
             'module init failed: no /usr/bin/pon found')
     self.ipcmd = None
Exemplo n.º 10
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.ipcmd = None
Exemplo n.º 11
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.dhclientcmd = dhclient(**kargs)
     self.ipcmd = None
Exemplo n.º 12
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.dhclientcmd = dhclient(**kargs)
     self.ipcmd = None
Exemplo n.º 13
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.ipcmd = None
     self._bridge_fdb_query_cache = {}
Exemplo n.º 14
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.ipcmd = None
     self.brctlcmd = None
     self.mstpctlcmd = None
Exemplo n.º 15
0
 def __init__(self, *args, **kargs):
     moduleBase.__init__(self, *args, **kargs)
     self.brctlcmd = None
     self.ipcmd = None