Use show command to support wider platform set for nxos_interface module (#33037)

* Use show command to support wider platform set

* Fix unit tests

(cherry picked from commit 95a2140f4b)
pull/33265/head
Mike Wiebe 7 years ago committed by Toshio Kuratomi
parent b0e5e108dd
commit 9845e5a018

@ -371,7 +371,7 @@ def get_interfaces_dict(module):
keys. Each value is a list of interfaces of given interface (key)
type.
"""
command = 'show interface status'
command = 'show interface'
try:
body = execute_show_command(command, module)[0]
except IndexError:

@ -0,0 +1,846 @@
{
"TABLE_interface": {
"ROW_interface": [
{
"interface": "mgmt0",
"state": "up",
"admin_state": "up",
"eth_hw_desc": "GigabitEthernet",
"eth_hw_addr": "e4c7.220c.4fe5",
"eth_bia_addr": "e4c7.220c.4fe5",
"eth_ip_addr": "10.122.84.99",
"eth_ip_mask": 24,
"eth_ip_prefix": "10.122.84.0",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "full",
"eth_speed": "1000 Mb/s",
"eth_autoneg": "on",
"eth_mdix": "off",
"eth_ethertype": "0x0000",
"vdc_lvl_in_avg_bytes": 47448,
"vdc_lvl_in_avg_pkts": 60,
"vdc_lvl_out_avg_bytes": 184968,
"vdc_lvl_out_avg_pkts": 59,
"vdc_lvl_in_pkts": 350043,
"vdc_lvl_in_ucast": 344955,
"vdc_lvl_in_mcast": 4700,
"vdc_lvl_in_bcast": 388,
"vdc_lvl_in_bytes": 108044389,
"vdc_lvl_out_pkts": 212806,
"vdc_lvl_out_ucast": 212606,
"vdc_lvl_out_mcast": 192,
"vdc_lvl_out_bcast": 8,
"vdc_lvl_out_bytes": 75961919,
"mgmt_in_pkts": 360175,
"mgmt_in_bytes": 108055870,
"mgmt_in_mcast": 11091,
"mgmt_in_compressed": 0,
"mgmt_in_errors": 0,
"mgmt_in_frame": 0,
"mgmt_in_overrun": 4072,
"mgmt_in_fifo": 0,
"mgmt_out_pkts": 212757,
"mgmt_out_bytes": 75100855,
"mgmt_out_underruns": 0,
"mgmt_out_errors": 0,
"mgmt_out_collisions": 0,
"mgmt_out_fifo": 0,
"mgmt_out_carrier": 0
},
{
"interface": "Ethernet2/1",
"state": "down",
"state_rsn_desc": "Administratively down",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "c84c.75fc.7c70",
"eth_bia_addr": "c84c.75fc.7c70",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "access",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_media": "1G",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_ratemode": "dedicated",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/2",
"state": "down",
"state_rsn_desc": "Administratively down",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c71",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_media": "1G",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_ratemode": "dedicated",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/3",
"state": "down",
"state_rsn_desc": "Administratively down",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c72",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_media": "1G",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_ratemode": "dedicated",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/4",
"state": "down",
"state_rsn_desc": "Administratively down",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c73",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_media": "1G",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_ratemode": "dedicated",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/5",
"state": "down",
"state_rsn_desc": "Administratively down",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c74",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_media": "1G",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_ratemode": "dedicated",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/6",
"state": "down",
"state_rsn_desc": "SFP not inserted",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c75",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/7",
"state": "down",
"state_rsn_desc": "SFP not inserted",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c76",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
},
{
"interface": "Ethernet2/8",
"state": "down",
"state_rsn_desc": "SFP not inserted",
"admin_state": "down",
"share_state": "Dedicated",
"eth_hw_desc": "1000 Ethernet",
"eth_hw_addr": "0026.980b.1041",
"eth_bia_addr": "c84c.75fc.7c77",
"eth_mtu": "1500",
"eth_bw": 1000000,
"eth_dly": 10,
"eth_reliability": "255",
"eth_txload": "1",
"eth_rxload": "1",
"eth_encap": "ARPA",
"medium": "broadcast",
"eth_mode": "routed",
"eth_duplex": "auto",
"eth_speed": "auto-speed",
"eth_beacon": "off",
"eth_autoneg": "on",
"eth_in_flowctrl": "off",
"eth_out_flowctrl": "off",
"eth_mdix": "off",
"eth_swt_monitor": "off",
"eth_ethertype": "0x8100",
"eth_eee_state": "n/a",
"eth_link_flapped": "never",
"eth_clear_counters": "00:15:20",
"eth_reset_cntr": 0,
"eth_load_interval1_rx": 30,
"eth_inrate1_bits": 0,
"eth_inrate1_pkts": 0,
"eth_load_interval1_tx": 30,
"eth_outrate1_bits": 0,
"eth_outrate1_pkts": 0,
"eth_inrate1_summary_bits": "0 bps",
"eth_inrate1_summary_pkts": "0 pps",
"eth_outrate1_summary_bits": "0 bps",
"eth_outrate1_summary_pkts": "0 pps",
"eth_load_interval2_rx": 300,
"eth_inrate2_bits": 0,
"eth_inrate2_pkts": 0,
"eth_load_interval2_tx": 300,
"eth_outrate2_bits": 0,
"eth_outrate2_pkts": 0,
"eth_inrate2_summary_bits": "0 bps",
"eth_inrate2_summary_pkts": "0 pps",
"eth_outrate2_summary_bits": "0 bps",
"eth_outrate2_summary_pkts": "0 pps",
"eth_l3in_ucastpkts": 0,
"eth_l3in_ucastbytes": 0,
"eth_l3in_mcastpkts": 0,
"eth_l3in_mcastbytes": 0,
"eth_l3out_ucastpkts": 0,
"eth_l3out_ucastbytes": 0,
"eth_l3out_mcastpkts": 0,
"eth_l3out_mcastbytes": 0,
"eth_inucast": 4,
"eth_inmcast": 0,
"eth_inbcast": 0,
"eth_inpkts": 4,
"eth_inbytes": 2496,
"eth_jumbo_inpkts": 0,
"eth_storm_supp": 0,
"eth_runts": 0,
"eth_giants": 0,
"eth_crc": 0,
"eth_nobuf": 0,
"eth_inerr": 0,
"eth_frame": 0,
"eth_overrun": 0,
"eth_underrun": 0,
"eth_ignored": 0,
"eth_watchdog": 0,
"eth_bad_eth": 0,
"eth_bad_proto": 0,
"eth_in_ifdown_drops": 0,
"eth_dribble": 0,
"eth_indiscard": 0,
"eth_inpause": 0,
"eth_outucast": 4,
"eth_outmcast": 0,
"eth_outbcast": 0,
"eth_outpkts": 4,
"eth_outbytes": 2496,
"eth_jumbo_outpkts": 0,
"eth_outerr": 0,
"eth_coll": 0,
"eth_deferred": 0,
"eth_latecoll": 0,
"eth_lostcarrier": 0,
"eth_nocarrier": 0,
"eth_babbles": 0,
"eth_outdiscard": 0,
"eth_outpause": 0
}
]
}
}
Loading…
Cancel
Save