예제 #1
0
    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()
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
    def __init__(self, args):
        super(NetworkVCommand, self).__init__(args)

        from v_network import NetworkV

        self._network = NetworkV()