show access-lists

show access-lists

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show access-lists",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_ip_ipv6_mac": {
                        "ROW_ip_ipv6_mac": [
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_ip_prefix": "224.0.1.39/32", 
                                            "ip": "ip", 
                                            "permitdeny": "permit", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_ip_prefix": "224.0.1.40/32", 
                                            "ip": "ip", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-auto-rp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "179", 
                                            "dest_port1_str": "bgp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "1023", 
                                            "src_port_op": "gt"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1023", 
                                            "dest_port_op": "gt", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "179", 
                                            "src_port1_str": "bgp", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-bgp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "179", 
                                            "dest_port1_str": "bgp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "1023", 
                                            "src_port_op": "gt"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1023", 
                                            "dest_port_op": "gt", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "179", 
                                            "src_port1_str": "bgp", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-bgp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "68", 
                                            "src_port1_str": "bootpc", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "67", 
                                            "dest_port1_str": "bootps", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "67", 
                                            "src_port1_str": "bootps", 
                                            "src_port_op": "neq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-dhcp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "67", 
                                            "src_port1_str": "bootps", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "68", 
                                            "dest_port1_str": "bootpc", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-dhcp-relay-response", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "546", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "547", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-dhcp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "547", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "546", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-dhcp6-relay-response", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "eigrp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-eigrp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "eigrp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-eigrp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "20", 
                                            "dest_port1_str": "ftp-data", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "21", 
                                            "dest_port1_str": "ftp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "src_port1_num": "20", 
                                            "src_port1_str": "ftp-data", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 40, 
                                            "src_any": "any", 
                                            "src_port1_num": "21", 
                                            "src_port1_str": "ftp", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ftp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ip_prefix": "224.0.0.0/24", 
                                        "dest_port1_num": "1985", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-hsrp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ipv6_prefix": "ff02::66/128", 
                                        "dest_port1_num": "2029", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-hsrp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "80", 
                                            "src_port1_str": "www", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "80", 
                                            "dest_port1_str": "www", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-http", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "443", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "443", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-https", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "icmp_str": "echo", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmp_str": "echo-reply", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-icmp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "echo-request", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "echo-reply", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-icmp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ip_prefix": "224.0.0.0/3", 
                                        "permitdeny": "permit", 
                                        "proto_str": "igmp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-igmp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "mac_dest": "0100.0ccc.cccc", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-cdp-udld-vtp", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "eth_proto": "0x8843", 
                                            "mac_dest": "0180.c200.000e", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "mac_dest": "0180.c200.000e", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-mac-cfsoe", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "eth_proto": "0x888e", 
                                        "mac_dest": "0180.c200.0003", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-dot1x", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "eth_proto": "0x8906", 
                                            "permitdeny": "permit", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "eth_proto": "0x8914", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-mac-fcoe", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "eth_proto": "0x8840", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-l2-tunnel", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "mac_dest": "0100.0ccd.cdd0", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-l2pt", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "mac_dest": "0180.c200.0015", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "mac_dest": "0180.c200.0014", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "mac_dest": "0900.2b00.0005", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "mac_dest": "0900.2b00.0004", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-mac-l3-isis", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "eth_proto": "0x8809", 
                                        "mac_dest": "0180.c200.0002", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-lacp", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "eth_proto": "0x88cc", 
                                        "mac_dest": "0180.c200.000e", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-lldp", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "eth_proto": "0x3401", 
                                        "mac_dest": "0180.c200.000e", 
                                        "mac_dest_wild": "0000.0000.0000", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-sdp-srp", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "mac_dest": "0100.0ccc.cccd", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "mac_dest": "0180.c200.0000", 
                                            "mac_dest_wild": "0000.0000.0000", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-mac-stp", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-mac-undesirable", 
                                "op_ip_ipv6_mac": "mac", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "mld-query", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "mld-report", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "mld-reduction", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "mldv2", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-mld", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "639", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "src_port1_num": "1023", 
                                            "src_port_op": "gt"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1023", 
                                            "dest_port_op": "gt", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "639", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-msdp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "router-solicitation", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "router-advertisement", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "nd-ns", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmpv6_str": "nd-na", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ndp", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "123", 
                                            "dest_port1_str": "ntp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "123", 
                                            "src_port1_str": "ntp", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ntp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "123", 
                                            "dest_port1_str": "ntp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "123", 
                                            "src_port1_str": "ntp", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ntp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "tcp", 
                                        "seqno": 10, 
                                        "src_any": "any", 
                                        "src_port1_num": "6653", 
                                        "src_port_op": "eq"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-openflow", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "ospf", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-ospf", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto": 89, 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-ospf6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_ip_prefix": "224.0.0.0/24", 
                                            "permitdeny": "permit", 
                                            "proto_str": "pim", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "496", 
                                            "dest_port1_str": "pim-auto-rp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_ip_prefix": "224.0.0.13/32", 
                                            "ip": "ip", 
                                            "permitdeny": "permit", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-pim", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ip_prefix": "224.0.0.13/32", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-pim-mdt-join", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "pim", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-pim-reg", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_ipv6_prefix": "ff02::d/128", 
                                            "permitdeny": "permit", 
                                            "proto_str": "pim", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "496", 
                                            "dest_port1_str": "pim-auto-rp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-pim6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "permitdeny": "permit", 
                                        "proto_str": "pim", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-pim6-reg", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_ip_prefix": "224.0.1.129/32", 
                                            "dest_port1_num": "319", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_ip_prefix": "224.0.1.129/32", 
                                            "dest_port1_num": "320", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ptp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1812", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1813", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1645", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1646", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 50, 
                                            "src_any": "any", 
                                            "src_port1_num": "1812", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 60, 
                                            "src_any": "any", 
                                            "src_port1_num": "1813", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 70, 
                                            "src_any": "any", 
                                            "src_port1_num": "1645", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 80, 
                                            "src_any": "any", 
                                            "src_port1_num": "1646", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-radius", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1812", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1813", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1645", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1646", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 50, 
                                            "src_any": "any", 
                                            "src_port1_num": "1812", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 60, 
                                            "src_any": "any", 
                                            "src_port1_num": "1813", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 70, 
                                            "src_any": "any", 
                                            "src_port1_num": "1645", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 80, 
                                            "src_any": "any", 
                                            "src_port1_num": "1646", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-radius6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ip_prefix": "224.0.0.0/24", 
                                        "dest_port1_num": "520", 
                                        "dest_port1_str": "rip", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-rip", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ipv6_prefix": "ff02::9/64", 
                                        "dest_port1_num": "521", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-rip6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "115", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "115", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-sftp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "161", 
                                            "dest_port1_str": "snmp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "162", 
                                            "dest_port1_str": "snmptrap", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "161", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "162", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-snmp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "161", 
                                            "dest_port1_str": "snmp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "162", 
                                            "dest_port1_str": "snmptrap", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "161", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "162", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-snmp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "22", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "22", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ssh", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "22", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "22", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-ssh6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "49", 
                                            "dest_port1_str": "tacacs", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "49", 
                                            "src_port1_str": "tacacs", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-tacacs", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "49", 
                                            "dest_port1_str": "tacacs", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "src_port1_num": "49", 
                                            "src_port1_str": "tacacs", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-tacacs6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "23", 
                                            "dest_port1_str": "telnet", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "107", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "src_port1_num": "23", 
                                            "src_port1_str": "telnet", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 40, 
                                            "src_any": "any", 
                                            "src_port1_num": "107", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-telnet", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "23", 
                                            "dest_port1_str": "telnet", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "107", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "src_port1_num": "23", 
                                            "src_port1_str": "telnet", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "tcp", 
                                            "seqno": 40, 
                                            "src_any": "any", 
                                            "src_port1_num": "107", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-telnet6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "69", 
                                            "dest_port1_str": "tftp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1758", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "src_port1_num": "69", 
                                            "src_port1_str": "tftp", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 40, 
                                            "src_any": "any", 
                                            "src_port1_num": "1758", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-tftp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "69", 
                                            "dest_port1_str": "tftp", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "1758", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "src_port1_num": "69", 
                                            "src_port1_str": "tftp", 
                                            "src_port_op": "eq"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 40, 
                                            "src_any": "any", 
                                            "src_port1_num": "1758", 
                                            "src_port_op": "eq"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-tftp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "icmp_str": "ttl-exceeded", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 10, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "icmp_str": "port-unreachable", 
                                            "permitdeny": "permit", 
                                            "proto_str": "icmp", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "33434", 
                                            "dest_port2_num": "33534", 
                                            "dest_port_op": "range", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 30, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "copp-system-p-acl-traceroute", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "dest_port1_num": "1434", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-undesirable", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "dest_port1_num": "3200", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-vpc", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ip_prefix": "224.0.0.18/32", 
                                        "ip": "ip", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-vrrp", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_ipv6_prefix": "ff02::12/128", 
                                        "ipv6": "ipv6", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_any": "any"
                                    }
                                }, 
                                "acl_name": "copp-system-p-acl-vrrp6", 
                                "op_ip_ipv6_mac": "ipv6", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "ip": "ip", 
                                            "permitdeny": "deny", 
                                            "seqno": 10, 
                                            "src_ip_prefix": "10.24.57.111/32"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "ip": "ip", 
                                            "permitdeny": "permit", 
                                            "seqno": 20, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "testSnmpV3", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }
                        ]
                    }
                }, 
                "code": "200", 
                "input": "show access-lists", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show access-lists command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show access-lists

IP access list copp-system-p-acl-auto-rp
 10 permit ip any 224.0.1.39/32 
 20 permit ip any 224.0.1.40/32 
IP access list copp-system-p-acl-bgp
 10 permit tcp any gt 1023 any eq bgp 
 20 permit tcp any eq bgp any gt 1023 
IPv6 access list copp-system-p-acl-bgp6
 10 permit tcp any gt 1023 any eq bgp 
 20 permit tcp any eq bgp any gt 1023 
IP access list copp-system-p-acl-dhcp
 10 permit udp any eq bootpc any 
 20 permit udp any neq bootps any eq bootps 
IP access list copp-system-p-acl-dhcp-relay-response
 10 permit udp any eq bootps any 
 20 permit udp any any eq bootpc 
IPv6 access list copp-system-p-acl-dhcp6
 10 permit udp any eq 546 any 
 20 permit udp any any eq 547 
IPv6 access list copp-system-p-acl-dhcp6-relay-response
 10 permit udp any eq 547 any 
 20 permit udp any any eq 546 
IP access list copp-system-p-acl-eigrp
 10 permit eigrp any any 
IPv6 access list copp-system-p-acl-eigrp6
 10 permit eigrp any any 
IP access list copp-system-p-acl-ftp
 10 permit tcp any any eq ftp-data 
 20 permit tcp any any eq ftp 
 30 permit tcp any eq ftp-data any 
 40 permit tcp any eq ftp any 
IP access list copp-system-p-acl-hsrp
 10 permit udp any 224.0.0.0/24 eq 1985 
IPv6 access list copp-system-p-acl-hsrp6
 10 permit udp any ff02::66/128 eq 2029 
IP access list copp-system-p-acl-http
 10 permit tcp any eq www any 
 20 permit tcp any any eq www 
IP access list copp-system-p-acl-https
 10 permit tcp any eq 443 any 
 20 permit tcp any any eq 443 
IP access list copp-system-p-acl-icmp
 10 permit icmp any any echo 
 20 permit icmp any any echo-reply 
IPv6 access list copp-system-p-acl-icmp6
 10 permit icmp any any echo-request 
 20 permit icmp any any echo-reply 
IP access list copp-system-p-acl-igmp
 10 permit igmp any 224.0.0.0/3 
MAC access list copp-system-p-acl-mac-cdp-udld-vtp
 10 permit any 0100.0ccc.cccc 0000.0000.0000 
MAC access list copp-system-p-acl-mac-cfsoe
 10 permit any 0180.c200.000e 0000.0000.0000 0x8843 
 20 permit any 0180.c200.000e 0000.0000.0000 
MAC access list copp-system-p-acl-mac-dot1x
 10 permit any 0180.c200.0003 0000.0000.0000 0x888e 
MAC access list copp-system-p-acl-mac-fcoe
 10 permit any any 0x8906 
 20 permit any any 0x8914 
MAC access list copp-system-p-acl-mac-l2-tunnel
 10 permit any any 0x8840 
MAC access list copp-system-p-acl-mac-l2pt
 10 permit any 0100.0ccd.cdd0 0000.0000.0000 
MAC access list copp-system-p-acl-mac-l3-isis
 10 permit any 0180.c200.0015 0000.0000.0000 
 20 permit any 0180.c200.0014 0000.0000.0000 
 30 permit any 0900.2b00.0005 0000.0000.0000 
 40 permit any 0900.2b00.0004 0000.0000.0000 
MAC access list copp-system-p-acl-mac-lacp
 10 permit any 0180.c200.0002 0000.0000.0000 0x8809 
MAC access list copp-system-p-acl-mac-lldp
 10 permit any 0180.c200.000e 0000.0000.0000 0x88cc 
MAC access list copp-system-p-acl-mac-sdp-srp
 10 permit any 0180.c200.000e 0000.0000.0000 0x3401 
MAC access list copp-system-p-acl-mac-stp
 10 permit any 0100.0ccc.cccd 0000.0000.0000 
 20 permit any 0180.c200.0000 0000.0000.0000 
MAC access list copp-system-p-acl-mac-undesirable
 10 permit any any 
IPv6 access list copp-system-p-acl-mld
 10 permit icmp any any mld-query 
 20 permit icmp any any mld-report 
 30 permit icmp any any mld-reduction 
 40 permit icmp any any mldv2 
IP access list copp-system-p-acl-msdp
 10 permit tcp any gt 1023 any eq 639 
 20 permit tcp any eq 639 any gt 1023 
IPv6 access list copp-system-p-acl-ndp
 10 permit icmp any any router-solicitation 
 20 permit icmp any any router-advertisement 
 30 permit icmp any any nd-ns 
 40 permit icmp any any nd-na 
IP access list copp-system-p-acl-ntp
 10 permit udp any any eq ntp 
 20 permit udp any eq ntp any 
IPv6 access list copp-system-p-acl-ntp6
 10 permit udp any any eq ntp 
 20 permit udp any eq ntp any 
IP access list copp-system-p-acl-openflow
 10 permit tcp any eq 6653 any 
IP access list copp-system-p-acl-ospf
 10 permit ospf any any 
IPv6 access list copp-system-p-acl-ospf6
 10 permit 89 any any 
IP access list copp-system-p-acl-pim
 10 permit pim any 224.0.0.0/24 
 20 permit udp any any eq pim-auto-rp 
 30 permit ip any 224.0.0.13/32 
IP access list copp-system-p-acl-pim-mdt-join
 10 permit udp any 224.0.0.13/32 
IP access list copp-system-p-acl-pim-reg
 10 permit pim any any 
IPv6 access list copp-system-p-acl-pim6
 10 permit pim any ff02::d/128 
 20 permit udp any any eq pim-auto-rp 
IPv6 access list copp-system-p-acl-pim6-reg
 10 permit pim any any 
IP access list copp-system-p-acl-ptp
 10 permit udp any 224.0.1.129/32 eq 319 
 20 permit udp any 224.0.1.129/32 eq 320 
IP access list copp-system-p-acl-radius
 10 permit udp any any eq 1812 
 20 permit udp any any eq 1813 
 30 permit udp any any eq 1645 
 40 permit udp any any eq 1646 
 50 permit udp any eq 1812 any 
 60 permit udp any eq 1813 any 
 70 permit udp any eq 1645 any 
 80 permit udp any eq 1646 any 
IPv6 access list copp-system-p-acl-radius6
 10 permit udp any any eq 1812 
 20 permit udp any any eq 1813 
 30 permit udp any any eq 1645 
 40 permit udp any any eq 1646 
 50 permit udp any eq 1812 any 
 60 permit udp any eq 1813 any 
 70 permit udp any eq 1645 any 
 80 permit udp any eq 1646 any 
IP access list copp-system-p-acl-rip
 10 permit udp any 224.0.0.0/24 eq rip 
IPv6 access list copp-system-p-acl-rip6
 10 permit udp any ff02::9/64 eq 521 
IP access list copp-system-p-acl-sftp
 10 permit tcp any any eq 115 
 20 permit tcp any eq 115 any 
IP access list copp-system-p-acl-snmp
 10 permit udp any any eq snmp 
 20 permit udp any any eq snmptrap 
 30 permit tcp any any eq 161 
 40 permit tcp any any eq 162 
IPv6 access list copp-system-p-acl-snmp6
 10 permit udp any any eq snmp 
 20 permit udp any any eq snmptrap 
 30 permit tcp any any eq 161 
 40 permit tcp any any eq 162 
IP access list copp-system-p-acl-ssh
 10 permit tcp any any eq 22 
 20 permit tcp any eq 22 any 
IPv6 access list copp-system-p-acl-ssh6
 10 permit tcp any any eq 22 
 20 permit tcp any eq 22 any 
IP access list copp-system-p-acl-tacacs
 10 permit tcp any any eq tacacs 
 20 permit tcp any eq tacacs any 
IPv6 access list copp-system-p-acl-tacacs6
 10 permit tcp any any eq tacacs 
 20 permit tcp any eq tacacs any 
IP access list copp-system-p-acl-telnet
 10 permit tcp any any eq telnet 
 20 permit tcp any any eq 107 
 30 permit tcp any eq telnet any 
 40 permit tcp any eq 107 any 
IPv6 access list copp-system-p-acl-telnet6
 10 permit tcp any any eq telnet 
 20 permit tcp any any eq 107 
 30 permit tcp any eq telnet any 
 40 permit tcp any eq 107 any 
IP access list copp-system-p-acl-tftp
 10 permit udp any any eq tftp 
 20 permit udp any any eq 1758 
 30 permit udp any eq tftp any 
 40 permit udp any eq 1758 any 
IPv6 access list copp-system-p-acl-tftp6
 10 permit udp any any eq tftp 
 20 permit udp any any eq 1758 
 30 permit udp any eq tftp any 
 40 permit udp any eq 1758 any 
IP access list copp-system-p-acl-traceroute
 10 permit icmp any any ttl-exceeded 
 20 permit icmp any any port-unreachable 
 30 permit udp any any range 33434 33534 
IP access list copp-system-p-acl-undesirable
 10 permit udp any any eq 1434 
IP access list copp-system-p-acl-vpc
 10 permit udp any any eq 3200 
IP access list copp-system-p-acl-vrrp
 10 permit ip any 224.0.0.18/32 
IPv6 access list copp-system-p-acl-vrrp6
 10 permit ipv6 any ff02::12/128 
IP access list testSnmpV3
 10 deny ip 10.24.57.111/32 any 
 20 permit ip any any 

show ip access-list acl-2 expand

show ip access-list acl-2 expand

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip access-list acl-2 expand",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_ip_ipv6_mac": {
                        "ROW_ip_ipv6_mac": {
                            "TABLE_seqno": {
                                "ROW_seqno": [
                                    {
                                        "dest_any": "any", 
                                        "ip": "ip", 
                                        "match_count": "0", 
                                        "permitdeny": "permit", 
                                        "seqno": 10, 
                                        "src_ip_prefix": "10.10.10.0/24"
                                    }, 
                                    {
                                        "dest_any": "any", 
                                        "ip": "ip", 
                                        "match_count": "3650723", 
                                        "permitdeny": "permit", 
                                        "seqno": 20, 
                                        "src_any": "any"
                                    }
                                ]
                            }, 
                            "acl_name": "acl-2", 
                            "op_ip_ipv6_mac": "ip", 
                            "show_summary": 0, 
                            "statistics": "enable"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip access-list acl-2 expand", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip access-list acl-2 expand command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show ip access-list acl-2 expand

IP access list acl-2
        statistics per-entry 
        10 permit ip 10.10.10.0/24 any [match=0] 
        20 permit ip any any [match=3651331] 

show ip access-list acl-2 summary

show ip access-list acl-2 summary

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip access-list acl-2 summary",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_ip_ipv6_mac": {
                        "ROW_ip_ipv6_mac": {
                            "acl_name": "acl-2", 
                            "active_if": "Ethernet1/49/1 - ingress (Port ACL)", 
                            "active_if_header": "Active on interfaces", 
                            "conf_if": "Ethernet1/49/1 - ingress (Port ACL)", 
                            "conf_if_header": "Configured on interfaces", 
                            "num_ace": 2, 
                            "op_ip_ipv6_mac": "ip", 
                            "show_summary": 1, 
                            "stats_enabled": "Statistics enabled"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip access-list acl-2 summary", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip access-list acl-2 summary command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show ip access-list acl-2 summary

IPV4 ACL acl-2
        Statistics enabled
        Total ACEs Configured: 2
        Configured on interfaces:
                Ethernet1/49/1 - ingress (Port ACL)
        Active on interfaces:
                Ethernet1/49/1 - ingress (Port ACL)

show ip access-lists dynamic

show ip access-lists dynamic

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip access-lists dynamic",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_ip_ipv6_mac": {
                        "ROW_ip_ipv6_mac": [
                            {
                                "acl_name": "_LC1_BFD_REDIRECT_IP_GEN_I_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "acl_name": "_LC1_BFD_REDIRECT_IP_GEN_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "acl_name": "_LC1_BFD_REDIRECT_IP_GEN_T_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": {
                                        "dest_any": "any", 
                                        "dest_port1_num": "6784", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "permit", 
                                        "proto_str": "udp", 
                                        "seqno": 10, 
                                        "src_any": "any", 
                                        "ttl": "255"
                                    }
                                }, 
                                "acl_name": "_LC1_BFD_REDIRECT_IP_I_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "3784", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "ttl": "255"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "3785", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "permit", 
                                            "proto_str": "udp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "ttl": "254"
                                        }
                                    ]
                                }, 
                                "acl_name": "_LC1_BFD_REDIRECT_IP_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "acl_name": "_LC1_BFD_REDIRECT_IP_T_TO_LC1_", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0
                            }, 
                            {
                                "TABLE_seqno": {
                                    "ROW_seqno": [
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "23", 
                                            "dest_port1_str": "telnet", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "deny", 
                                            "proto_str": "tcp", 
                                            "seqno": 10, 
                                            "src_any": "any", 
                                            "syn": "enable"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "80", 
                                            "dest_port1_str": "www", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "deny", 
                                            "proto_str": "tcp", 
                                            "seqno": 20, 
                                            "src_any": "any", 
                                            "syn": "enable"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "dest_port1_num": "22", 
                                            "dest_port_op": "eq", 
                                            "permitdeny": "deny", 
                                            "proto_str": "tcp", 
                                            "seqno": 30, 
                                            "src_any": "any", 
                                            "syn": "enable"
                                        }, 
                                        {
                                            "dest_any": "any", 
                                            "ip": "ip", 
                                            "permitdeny": "permit", 
                                            "seqno": 40, 
                                            "src_any": "any"
                                        }
                                    ]
                                }, 
                                "acl_name": "sl_def_acl", 
                                "op_ip_ipv6_mac": "ip", 
                                "show_summary": 0, 
                                "statistics": "enable"
                            }
                        ]
                    }
                }, 
                "code": "200", 
                "input": "show ip access-lists dynamic", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip access-lists dynamic command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show ip access-lists dynamic

IP access list _LC1_BFD_REDIRECT_IP_GEN_I_TOLC1
IP access list _LC1_BFD_REDIRECT_IP_GEN_TOLC1
IP access list _LC1_BFD_REDIRECT_IP_GEN_T_TOLC1
IP access list _LC1_BFD_REDIRECT_IP_I_TOLC1
        10 permit udp any any eq 6784 ttl 255 
IP access list _LC1_BFD_REDIRECT_IP_TOLC1
        10 permit udp any any eq 3784 ttl 255 
        20 permit udp any any eq 3785 ttl 254 
IP access list _LC1_BFD_REDIRECT_IP_T_TOLC1
IP access list sl_def_acl
        statistics per-entry 
        10 deny tcp any any eq telnet syn 
        20 deny tcp any any eq www syn 
        30 deny tcp any any eq 22 syn 
        40 permit ip any any 

show ip access-list sl_def_acl dynamic

show ip access-list sl_def_acl dynamic

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show ip access-list sl_def_acl dynamic",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_ip_ipv6_mac": {
                        "ROW_ip_ipv6_mac": {
                            "TABLE_seqno": {
                                "ROW_seqno": [
                                    {
                                        "dest_any": "any", 
                                        "dest_port1_num": "23", 
                                        "dest_port1_str": "telnet", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "deny", 
                                        "proto_str": "tcp", 
                                        "seqno": 10, 
                                        "src_any": "any", 
                                        "syn": "enable"
                                    }, 
                                    {
                                        "dest_any": "any", 
                                        "dest_port1_num": "80", 
                                        "dest_port1_str": "www", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "deny", 
                                        "proto_str": "tcp", 
                                        "seqno": 20, 
                                        "src_any": "any", 
                                        "syn": "enable"
                                    }, 
                                    {
                                        "dest_any": "any", 
                                        "dest_port1_num": "22", 
                                        "dest_port_op": "eq", 
                                        "permitdeny": "deny", 
                                        "proto_str": "tcp", 
                                        "seqno": 30, 
                                        "src_any": "any", 
                                        "syn": "enable"
                                    }, 
                                    {
                                        "dest_any": "any", 
                                        "ip": "ip", 
                                        "permitdeny": "permit", 
                                        "seqno": 40, 
                                        "src_any": "any"
                                    }
                                ]
                            }, 
                            "acl_name": "sl_def_acl", 
                            "op_ip_ipv6_mac": "ip", 
                            "show_summary": 0, 
                            "statistics": "enable"
                        }
                    }
                }, 
                "code": "200", 
                "input": "show ip access-list sl_def_acl dynamic", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show ip access-list sl_def_acl dynamic command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show ip access-list sl_def_acl dynamic

IP access list sl_def_acl
        statistics per-entry 
        10 deny tcp any any eq telnet syn 
        20 deny tcp any any eq www syn 
        30 deny tcp any any eq 22 syn 
        40 permit ip any any 

show mac address-table

show mac address-table

import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
  "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show mac address-table",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)


{

    "ins_api": {
        "outputs": {
            "output": {
                "body": {
                    "TABLE_mac_address": {
                        "ROW_mac_address": [
                            {
                                "disp_age": "0", 
                                "disp_is_ntfy": "disabled", 
                                "disp_is_secure": "disabled", 
                                "disp_is_static": "disabled", 
                                "disp_mac_addr": "0000.0000.0010", 
                                "disp_port": "Ethernet2/2", 
                                "disp_type": "* ", 
                                "disp_vlan": "3"
                            }, 
                            {
                                "disp_age": "0", 
                                "disp_is_ntfy": "disabled", 
                                "disp_is_secure": "disabled", 
                                "disp_is_static": "disabled", 
                                "disp_mac_addr": "006b.f1be.dd00", 
                                "disp_port": "Ethernet2/2", 
                                "disp_type": "* ", 
                                "disp_vlan": "3"
                            }, 
                            {
                                "disp_age": "0", 
                                "disp_is_ntfy": "disabled", 
                                "disp_is_secure": "disabled", 
                                "disp_is_static": "disabled", 
                                "disp_mac_addr": "0000.ff00.1100", 
                                "disp_port": "Ethernet4/1", 
                                "disp_type": "* ", 
                                "disp_vlan": "4"
                            }, 
                            {
                                "disp_age": "0", 
                                "disp_is_ntfy": "disabled", 
                                "disp_is_secure": "disabled", 
                                "disp_is_static": "disabled", 
                                "disp_mac_addr": "2c33.11b3.8c68", 
                                "disp_port": "Ethernet4/2", 
                                "disp_type": "* ", 
                                "disp_vlan": "4"
                            }, 
                            {
                                "disp_age": "0", 
                                "disp_is_ntfy": "disabled", 
                                "disp_is_secure": "disabled", 
                                "disp_is_static": "enabled", 
                                "disp_mac_addr": "00f6.63f6.07ff", 
                                "disp_port": "sup-eth1(R)", 
                                "disp_type": "G ", 
                                "disp_vlan": "0"
                            }
                        ]
                    }
                }, 
                "code": "200", 
                "input": "show mac address-table", 
                "msg": "Success"
            }
        }, 
        "sid": "eoc", 
        "type": "cli_show", 
        "version": "1.0"
    }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show mac address-table command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 7.0(3)I7(4).

CLI Output
Switch# show mac address-table
Legend: 
         - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link,
        (T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan
   VLAN     MAC Address      Type      age     Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
    3     0000.0000.0010   dynamic  0         F      F    Eth2/2
    3     006b.f1be.dd00   dynamic  0         F      F    Eth2/2
    4     0000.ff00.1100   dynamic  0         F      F    Eth4/1
*    4     2c33.11b3.8c68   dynamic  0         F      F    Eth4/2
G    -     00f6.63f6.07ff   static   -         F      F    sup-eth1(R)