def _init_command_handlers(self): if not self.ipcmd: self.ipcmd = iproute2() if not self.bondcmd: self.bondcmd = bondutil() if not self.dhclientcmd: self.dhclientcmd = dhclient()
def _init_command_handlers(self): flags = self.get_flags() if not self.ipcmd: self.ipcmd = iproute2(**flags) if not self.brctlcmd: self.brctlcmd = brctl(**flags) if not self.mstpctlcmd: self.mstpctlcmd = mstpctlutil(**flags)
def run (self, ifaceobj, operation, query_ifaceobj = None, **extra_args): op_handler = self._run_ops.get(operation) if not op_handler: return if operation != 'query-running' and not self._is_my_interface (ifaceobj): return if not self.ipcmd: self.ipcmd = iproute2 () if operation == 'query-checkcurr': op_handler (self, ifaceobj, query_ifaceobj) else: op_handler (self, ifaceobj)
def _init_command_handlers(self): if not self.ipcmd: self.ipcmd = iproute2(**self.get_flags())
def _init_command_handlers(self): if not self.ipcmd: self.ipcmd = iproute2()
def _init_command_handlers(self): flags = self.get_flags() if not self.ipcmd: self.ipcmd = iproute2(**flags) if not self.ifenslavecmd: self.ifenslavecmd = ifenslaveutil(**flags)