def __init__(self, *args, **kargs): Addon.__init__(self) moduleBase.__init__(self, *args, **kargs) if not os.path.exists(utils.ethtool_cmd): raise moduleNotSupported('module init failed: %s: not found' % utils.ethtool_cmd) # keep a list of iface objects who have modified link attributes self.ifaceobjs_modified_configs = [] # Cache for features self.feature_cache = None self.ethtool_ignore_errors = policymanager.policymanager_api.get_module_globals( module_name=self.__class__.__name__, attr='ethtool_ignore_errors')
def __init__(self, *args, **kargs): Addon.__init__(self) moduleBase.__init__(self, *args, **kargs) if not os.path.exists('/usr/sbin/batctl'): raise moduleNotSupported( 'module init failed: no /usr/sbin/batctl found') for longname, entry in self._modinfo['attrs'].items(): if entry.get('batman-attr', False): attr = longname.replace("batman-", "") self._batman_attrs[attr] = { 'filename': attr.replace("-", "_"), }
def __init__ (self, *args, **kargs): moduleBase.__init__ (self, *args, **kargs) if not os.path.exists('/usr/sbin/batctl'): raise moduleNotSupported('module init failed: no /usr/sbin/batctl found') 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) Addon.__init__(self) if not os.path.exists('/usr/bin/ovs-vsctl'): raise moduleNotSupported( 'module init failed: no /usr/bin/ovs-vsctl found')
def __init__(self, *args, **kargs): Addon.__init__(self) moduleBase.__init__(self, *args, **kargs) if not os.path.exists('/usr/bin/pon'): raise moduleNotSupported( 'module init failed: no /usr/bin/pon found')