Ejemplo n.º 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()
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
    def __init__(self, args):
        super(NetworkVCommand, self).__init__(args)

        from v_network import NetworkV

        self._network = NetworkV()