Convert nxos_interface to DI (#34240)
* Convert nxos_interface to DI Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add integration test Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * commit for ganeshrn's comment Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
a3c185bfa8
commit
80ba767204
9 changed files with 670 additions and 1503 deletions
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,63 @@
|
||||||
|
- debug: msg="START TRANSPORT:{{ connection.transport }} nxos_interface intent test"
|
||||||
|
|
||||||
|
- set_fact: testint1="{{ nxos_int1 }}"
|
||||||
|
- set_fact: testint2="{{ nxos_int2 }}"
|
||||||
|
|
||||||
|
- name: "Setup: Put interfaces into a default state"
|
||||||
|
nxos_config:
|
||||||
|
lines:
|
||||||
|
- "default interface {{ testint1 }}"
|
||||||
|
- "default interface {{ testint2 }}"
|
||||||
|
provider: "{{ connection }}"
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: Check intent arguments
|
||||||
|
nxos_interface:
|
||||||
|
name: "{{ testint2 }}"
|
||||||
|
admin_state: up
|
||||||
|
tx_rate: ge(0)
|
||||||
|
rx_rate: ge(0)
|
||||||
|
provider: "{{ connection }}"
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "result.failed == false"
|
||||||
|
|
||||||
|
- name: Check intent arguments (failed condition)
|
||||||
|
nxos_interface:
|
||||||
|
name: "{{ testint2 }}"
|
||||||
|
admin_state: down
|
||||||
|
tx_rate: gt(0)
|
||||||
|
rx_rate: lt(0)
|
||||||
|
provider: "{{ connection }}"
|
||||||
|
ignore_errors: yes
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "result.failed == true"
|
||||||
|
- "'tx_rate gt(0)' in result.failed_conditions"
|
||||||
|
- "'rx_rate lt(0)' in result.failed_conditions"
|
||||||
|
|
||||||
|
- name: aggregate definition of interface
|
||||||
|
nxos_interface:
|
||||||
|
aggregate:
|
||||||
|
- { name: "{{ testint1 }}", description: "Test aggregation on first interface" }
|
||||||
|
- { name: "{{ testint2 }}", mode: layer3 }
|
||||||
|
provider: "{{ connection }}"
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "result.changed == true"
|
||||||
|
|
||||||
|
- name: "TearDown: Put interfaces into a default state"
|
||||||
|
nxos_config:
|
||||||
|
lines:
|
||||||
|
- "default interface {{ testint1 }}"
|
||||||
|
- "default interface {{ testint2 }}"
|
||||||
|
provider: "{{ connection }}"
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- debug: msg="END TRANSPORT:{{ connection.transport }} nxos_interface intent test"
|
|
@ -33,7 +33,7 @@
|
||||||
interface: "{{ testint }}"
|
interface: "{{ testint }}"
|
||||||
mode: layer3
|
mode: layer3
|
||||||
description: 'Configured by Ansible - Layer3'
|
description: 'Configured by Ansible - Layer3'
|
||||||
admin_state: 'up'
|
admin_state: up
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
register: result
|
register: result
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
interface: "{{ testint }}"
|
interface: "{{ testint }}"
|
||||||
mode: layer2
|
mode: layer2
|
||||||
description: 'Configured by Ansible - Layer2'
|
description: 'Configured by Ansible - Layer2'
|
||||||
admin_state: 'down'
|
admin_state: down
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
|
@ -1,846 +0,0 @@
|
||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,93 +0,0 @@
|
||||||
{
|
|
||||||
"TABLE_interface": {
|
|
||||||
"ROW_interface": {
|
|
||||||
"interface": "Ethernet2/5",
|
|
||||||
"state": "down",
|
|
||||||
"state_rsn_desc": "Administratively down",
|
|
||||||
"admin_state": "down",
|
|
||||||
"share_state": "Dedicated",
|
|
||||||
"eth_hw_desc": "Ethernet",
|
|
||||||
"eth_hw_addr": "0000.0000.002f",
|
|
||||||
"eth_bia_addr": "0000.0000.0000",
|
|
||||||
"eth_mtu": "1500",
|
|
||||||
"eth_bw": 1000000,
|
|
||||||
"eth_dly": 10,
|
|
||||||
"eth_reliability": "255",
|
|
||||||
"eth_txload": "1",
|
|
||||||
"eth_rxload": "1",
|
|
||||||
"medium": "broadcast",
|
|
||||||
"eth_mode": "routed",
|
|
||||||
"eth_duplex": "auto",
|
|
||||||
"eth_speed": "auto-speed",
|
|
||||||
"eth_beacon": "off",
|
|
||||||
"eth_autoneg": "off",
|
|
||||||
"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": "never",
|
|
||||||
"eth_reset_cntr": 0,
|
|
||||||
"eth_load_interval1_rx": 0,
|
|
||||||
"eth_inrate1_bits": 0,
|
|
||||||
"eth_inrate1_pkts": 0,
|
|
||||||
"eth_load_interval1_tx": 0,
|
|
||||||
"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": 0,
|
|
||||||
"eth_inrate2_bits": 0,
|
|
||||||
"eth_inrate2_pkts": 0,
|
|
||||||
"eth_load_interval2_tx": 0,
|
|
||||||
"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": 0,
|
|
||||||
"eth_inmcast": 0,
|
|
||||||
"eth_inbcast": 0,
|
|
||||||
"eth_inpkts": 0,
|
|
||||||
"eth_inbytes": 0,
|
|
||||||
"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": 0,
|
|
||||||
"eth_outmcast": 0,
|
|
||||||
"eth_outbcast": 0,
|
|
||||||
"eth_outpkts": 0,
|
|
||||||
"eth_outbytes": 0,
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
!Command: show running-config interface Ethernet2/5
|
|
||||||
!Time: Fri Nov 10 05:50:59 2017
|
|
||||||
|
|
||||||
version 7.3(0)D1(1)
|
|
||||||
|
|
||||||
interface Ethernet2/5
|
|
||||||
shutdown
|
|
||||||
no switchport
|
|
||||||
mac-address 0000.0000.002f
|
|
||||||
|
|
|
@ -73,8 +73,3 @@ class TestNxosInterfaceModule(TestNxosModule):
|
||||||
set_module_args(dict(interface='loopback0', state='absent'))
|
set_module_args(dict(interface='loopback0', state='absent'))
|
||||||
result = self.execute_module(changed=False)
|
result = self.execute_module(changed=False)
|
||||||
self.assertEqual(result['commands'], [])
|
self.assertEqual(result['commands'], [])
|
||||||
|
|
||||||
def test_nxos_interface_mtu_change(self):
|
|
||||||
set_module_args(dict(interface='Ethernet2/5', mtu=1606, state='present'))
|
|
||||||
result = self.execute_module(changed=True)
|
|
||||||
self.assertEqual(result['commands'], ['interface Ethernet2/5', 'mtu 1606', 'no shutdown'])
|
|
||||||
|
|
Loading…
Reference in a new issue