Esempio n. 1
0
 def _iplink(self, arguments):
     """
     Runs the 'ip' command with the provided arguments.
     :param arguments: Argument string to pass to the 'ip' command.
     :return: Dictionary from meth:nixcommon.runProcess
     """
     return nixcommon.runProcess("ip link %s" %arguments)
Esempio n. 2
0
    def _iproute_table(self, arguments):
        """
        Wrapper for calls to 'ip route'.

        """
        return nixcommon.runProcess("ip route %s table %s" %
                                    (arguments, self.name))
    def _iproute_table(self, arguments):
        """
        Wrapper for calls to 'ip route'.

        """
        return nixcommon.runProcess("ip route %s table %s" %(arguments,self.name))
Esempio n. 4
0
 def _ipaddress(self, arguments):
     """
     Just an alias to the 'ip address' command.
     :return: Dictionary from meth:nixcommon.runProcess
     """
     return nixcommon.runProcess("ip address %s" %arguments)
Esempio n. 5
0
    def _iproute(self, arguments):
        """
        Wrapper for calls to 'ip route'.

        """
        return nixcommon.runProcess("ip route %s" % arguments)
Esempio n. 6
0
    def _iproute(self, arguments):
        """
        Wrapper for calls to 'ip route'.

        """
        return nixcommon.runProcess("ip route %s" %arguments)