mirror of https://github.com/ansible/ansible.git
Fix nxos_interface multiple issues (#36827)
* fix interface_type Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fix setting mtu, doc for state check param, doc for params applicable for ethernet intf Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * speed idempotence and add unittest Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fabric_forwarding_anycast_gateway applicable for svi type intf only Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fix speed Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>pull/36893/head
parent
e2615308f9
commit
2fbfce06e7
@ -0,0 +1,129 @@
|
||||
{
|
||||
"TABLE_interface": {
|
||||
"ROW_interface": [
|
||||
{
|
||||
"interface": "Ethernet2/1",
|
||||
"state": "up",
|
||||
"admin_state": "up",
|
||||
"share_state": "Dedicated",
|
||||
"eth_hw_desc": "Ethernet",
|
||||
"eth_hw_addr": "fa16.3e50.6647",
|
||||
"eth_bia_addr": "fa16.3e50.6619",
|
||||
"desc": "Test aggregation on first interface",
|
||||
"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": "full",
|
||||
"eth_speed": "1000 Mb/s",
|
||||
"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": "4d15h",
|
||||
"eth_clear_counters": "never",
|
||||
"eth_reset_cntr": 87,
|
||||
"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
|
||||
},
|
||||
{
|
||||
"interface": "loopback0",
|
||||
"state": "up",
|
||||
"admin_state": "up",
|
||||
"eth_hw_desc": "Loopback",
|
||||
"desc": "Loopback",
|
||||
"eth_ip_addr": "192.168.255.1",
|
||||
"eth_ip_mask": 32,
|
||||
"eth_ip_prefix": "192.168.255.1",
|
||||
"eth_mtu": "1500",
|
||||
"eth_bw": 8000000,
|
||||
"eth_dly": 5000,
|
||||
"eth_reliability": "255",
|
||||
"eth_txload": "1",
|
||||
"eth_rxload": "1",
|
||||
"medium": "broadcast",
|
||||
"eth_mode": "routed",
|
||||
"eth_mdix": "off",
|
||||
"loop_in_pkts": 1451854,
|
||||
"loop_in_bytes": 75138128,
|
||||
"loop_in_mcast": 0,
|
||||
"loop_in_compressed": 0,
|
||||
"loop_in_errors": 0,
|
||||
"loop_in_frame": 0,
|
||||
"loop_in_overrun": 0,
|
||||
"loop_in_fifo": 0,
|
||||
"loop_out_pkts": 0,
|
||||
"loop_out_bytes": 0,
|
||||
"loop_out_underruns": 0,
|
||||
"loop_out_errors": 0,
|
||||
"loop_out_collisions": 0,
|
||||
"loop_out_fifo": 0,
|
||||
"loop_out_carriers": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
{
|
||||
"TABLE_interface": {
|
||||
"ROW_interface": {
|
||||
"interface": "Ethernet2/1",
|
||||
"state": "up",
|
||||
"admin_state": "up",
|
||||
"share_state": "Dedicated",
|
||||
"eth_hw_desc": "Ethernet",
|
||||
"eth_hw_addr": "fa16.3e00.0001",
|
||||
"eth_bia_addr": "fa16.3e27.f279",
|
||||
"desc": "to nxos03",
|
||||
"eth_ip_addr": "10.0.0.45",
|
||||
"eth_ip_mask": 30,
|
||||
"eth_ip_prefix": "10.0.0.44",
|
||||
"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": "full",
|
||||
"eth_speed": "1000 Mb/s",
|
||||
"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": "14week(s) 0day(s)",
|
||||
"eth_clear_counters": "never",
|
||||
"eth_reset_cntr": 1,
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
interface Ethernet1/5
|
||||
description to csr02
|
||||
no switchport
|
||||
speed 1000
|
||||
mtu 1500
|
||||
mac-address fa16.3e00.000b
|
||||
ip address 172.31.0.66/30
|
||||
no shutdown
|
Loading…
Reference in New Issue