Example #1
0
    def show_interface_configuration(self, port, type="ethernet"):
        LOG.debug("Fetching interface %s %s" % (type, port.interface))

        cmds = commands.show_interface_configuration(type, port.interface)

        result = self._run_commands(port, cmds)
        return cisco_utils.parse_command_result(result)
Example #2
0
    def show_interface_configuration(self, port, type="ethernet"):
        LOG.debug("Fetching interface %s %s" % (type, port.interface))

        cmds = commands.show_interface_configuration(type, port.interface)

        result = self._run_commands(port, cmds)
        return cisco_utils.parse_command_result(result)
Example #3
0
    def show_dhcp_snooping_configuration(self, port):
        LOG.debug("Fetching dhcp snooping entries for int %s" % port.interface)

        po_int = commands._make_portchannel_interface(port.interface)
        cmds = commands.show_dhcp_snooping_configuration(po_int)

        result = self._run_commands(port, cmds)
        return cisco_utils.parse_command_result(result)
Example #4
0
    def show_dhcp_snooping_configuration(self, port):
        LOG.debug("Fetching dhcp snooping entries for int %s" % port.interface)

        po_int = commands._make_portchannel_interface(port.interface)
        cmds = commands.show_dhcp_snooping_configuration(po_int)

        result = self._run_commands(port, cmds)
        return cisco_utils.parse_command_result(result)