def __init__(self, args): super(NetworkVCommand, self).__init__(args) sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from v_network import NetworkV self._network = NetworkV()
class NetworkVCommand(VCommand): """Network related commands.""" name = "network" def __init__(self, args): super(NetworkVCommand, self).__init__(args) from v_network import NetworkV self._network = NetworkV() def process(self): """Validate network connectivity ip1 ip2 ip3...""" self._network.validate(self.v_type, self.args)
class NetworkVCommand(VCommand): """Network related commands.""" name = "network" def __init__(self, args): super(NetworkVCommand, self).__init__(args) sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from v_network import NetworkV self._network = NetworkV() def process(self): """Validate network connectivity ip1 ip2 ip3...""" self._network.validate(self.v_type, self.args)
def __init__(self, args): super(NetworkVCommand, self).__init__(args) from v_network import NetworkV self._network = NetworkV()