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)))
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 = []
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)))
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
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("-", "_"), }
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)
def __init__ (self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.pppcmd = pppd(**kargs) self.ipcmd = None;
def __init__(self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.ipcmd = None self._bridge_fdb_query_cache = {}
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
def __init__(self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.ipcmd = None
def __init__(self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.dhclientcmd = dhclient(**kargs) self.ipcmd = None
def __init__(self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.ipcmd = None self.brctlcmd = None self.mstpctlcmd = None
def __init__(self, *args, **kargs): moduleBase.__init__(self, *args, **kargs) self.brctlcmd = None self.ipcmd = None