-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cisco_nxos show_ip_interface (#1092)
- Loading branch information
Showing
7 changed files
with
364 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/cisco_nxos/show_ip_interface/cisco_nxos_show_ip_interface2.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
IP Interface Status for VRF "default" | ||
loopback0, Interface status: protocol-up/link-up/admin-up, iod: 41, | ||
Unnumbered interfaces of loopback0: first iod 55 | ||
mti15: mti4: mti7: mti11: mti10: mti3: mti16: mti14: mti12: mti13: mti5: mti9: mti8: mti6: | ||
IP address: 172.21.128.18, IP subnet: 172.21.128.18/32 route-preference: 0, tag: 0 | ||
IP broadcast address: 255.255.255.255 | ||
IP multicast groups locally joined: | ||
224.0.0.13 224.0.0.22 224.0.0.2 224.0.0.1 | ||
IP MTU: 1500 bytes (using link MTU) | ||
IP primary address route-preference: 0, tag: 0 | ||
IP proxy ARP : disabled | ||
IP Local Proxy ARP : disabled | ||
IP multicast routing: enabled | ||
IP icmp redirects: enabled | ||
IP directed-broadcast: disabled | ||
IP Forwarding: disabled | ||
IP icmp unreachables (except port): disabled | ||
IP icmp port-unreachable: enabled | ||
IP unicast reverse path forwarding: none | ||
IP load sharing: none | ||
IP interface statistics last reset: never | ||
IP interface software stats: (sent/received/forwarded/originated/consumed) | ||
Unicast packets : 0/0/0/0/145403414 | ||
Unicast bytes : 0/0/0/0/29147964524 | ||
Multicast packets : 0/0/0/0/0 | ||
Multicast bytes : 0/0/0/0/0 | ||
Broadcast packets : 0/0/0/0/0 | ||
Broadcast bytes : 0/0/0/0/0 | ||
Labeled packets : 0/0/0/0/0 | ||
Labeled bytes : 0/0/0/0/0 | ||
WCCP Redirect outbound: disabled | ||
WCCP Redirect inbound: disabled | ||
WCCP Redirect exclude: disabled |
73 changes: 73 additions & 0 deletions
73
tests/cisco_nxos/show_ip_interface/cisco_nxos_show_ip_interface2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
parsed_sample: | ||
- vrf_name: "default" | ||
interface: "loopback0" | ||
protocol_status: "up" | ||
link_status: "up" | ||
admin_status: "up" | ||
primary_ip_address: "172.21.128.18" | ||
primary_ip_subnet: "172.21.128.18/32" | ||
primary_broadcast_address: "255.255.255.255" | ||
secondary_ip_address: [] | ||
secondary_ip_subnet: [] | ||
multicast_groups: "224.0.0.13 224.0.0.22 224.0.0.2 224.0.0.1" | ||
mtu: "1500" | ||
route_preference: "0" | ||
route_preference_tag: "0" | ||
proxy_arp: "disabled" | ||
local_proxy_arp: "disabled" | ||
multicast_routing: "enabled" | ||
icmp_redirects: "enabled" | ||
directed_broadcast: "disabled" | ||
ip_forwarding: "disabled" | ||
icmp_unreachables: "disabled" | ||
icmp_port_unreachable: "enabled" | ||
urpf: "none" | ||
load_sharing: "none" | ||
last_reset: "never" | ||
unicast_packets_sent: "0" | ||
unicast_packets_received: "0" | ||
unicast_packets_forwarded: "0" | ||
unicast_packets_originated: "0" | ||
unicast_packets_consumed: "145403414" | ||
unicast_bytes_sent: "0" | ||
unicast_bytes_received: "0" | ||
unicast_bytes_forwarded: "0" | ||
unicast_bytes_originated: "0" | ||
unicast_bytes_consumed: "29147964524" | ||
multicast_packets_sent: "0" | ||
multicast_packets_received: "0" | ||
multicast_packets_forwarded: "0" | ||
multicast_packets_originated: "0" | ||
multicast_packets_consumed: "0" | ||
multicast_bytes_sent: "0" | ||
multicast_bytes_received: "0" | ||
multicast_bytes_forwarded: "0" | ||
multicast_bytes_originated: "0" | ||
multicast_bytes_consumed: "0" | ||
broadcast_packets_sent: "0" | ||
broadcast_packets_received: "0" | ||
broadcast_packets_forwarded: "0" | ||
broadcast_packets_originated: "0" | ||
broadcast_packets_consumed: "0" | ||
broadcast_bytes_sent: "0" | ||
broadcast_bytes_received: "0" | ||
broadcast_bytes_forwarded: "0" | ||
broadcast_bytes_originated: "0" | ||
broadcast_bytes_consumed: "0" | ||
labeled_packets_sent: "0" | ||
labeled_packets_received: "0" | ||
labeled_packets_forwarded: "0" | ||
labeled_packets_originated: "0" | ||
labeled_packets_consumed: "0" | ||
labeled_bytes_sent: "0" | ||
labeled_bytes_received: "0" | ||
labeled_bytes_forwarded: "0" | ||
labeled_bytes_originated: "0" | ||
labeled_bytes_consumed: "0" | ||
wccp_redirect_outbound: "disabled" | ||
wccp_redirect_inbound: "disabled" | ||
wccp_redirect_exclude: "disabled" | ||
acl_out: "" | ||
secondary_route_preference: [] | ||
secondary_route_preference_tag: [] |
64 changes: 64 additions & 0 deletions
64
tests/cisco_nxos/show_ip_interface/cisco_nxos_show_ip_interface3.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Vlan249, Interface status: protocol-up/link-up/admin-up, iod: 94, | ||
IP address: 172.16.170.194, IP subnet: 172.16.170.192/26 route-preference: 0, tag: 0 | ||
IP address: 172.16.168.66, IP subnet: 172.16.168.64/27 secondary route-preference: 0, tag: 0 | ||
IP broadcast address: 255.255.255.255 | ||
IP multicast groups locally joined: | ||
224.0.0.2 224.0.0.13 224.0.0.1 224.0.0.102 | ||
IP MTU: 1500 bytes (using link MTU) | ||
IP primary address route-preference: 0, tag: 0 | ||
IP proxy ARP : disabled | ||
IP Local Proxy ARP : disabled | ||
IP multicast routing: enabled | ||
IP icmp redirects: disabled | ||
IP directed-broadcast: disabled | ||
IP Forwarding: disabled | ||
IP icmp unreachables (except port): disabled | ||
IP icmp port-unreachable: enabled | ||
IP unicast reverse path forwarding: none | ||
IP load sharing: none | ||
IP outbound access list: MAN_out | ||
IP interface statistics last reset: never | ||
IP interface software stats: (sent/received/forwarded/originated/consumed) | ||
Unicast packets : 2244/1789802/530/1714/5919406 | ||
Unicast bytes : 265221/150279513/178557/127056/495850266 | ||
Multicast packets : 1470831/16436403/0/1470831/32872800 | ||
Multicast bytes : 73541550/1570424758/0/100016508/1570424550 | ||
Broadcast packets : 0/0/0/0/0 | ||
Broadcast bytes : 0/0/0/0/0 | ||
Labeled packets : 0/0/0/0/0 | ||
Labeled bytes : 0/0/0/0/0 | ||
WCCP Redirect outbound: disabled | ||
WCCP Redirect inbound: disabled | ||
WCCP Redirect exclude: disabled | ||
Vlan783, Interface status: protocol-up/link-up/admin-up, iod: 62, | ||
IP address: 152.98.241.32, IP subnet: 152.98.241.0/24 route-preference: 0, tag: 0 | ||
IP address: 152.98.246.32, IP subnet: 152.98.246.0/24 secondary route-preference: 0, tag: 0 | ||
IP address: 192.168.29.32, IP subnet: 192.168.29.0/24 secondary route-preference: 0, tag: 0 | ||
IP broadcast address: 255.255.255.255 | ||
IP multicast groups locally joined: | ||
224.0.0.2 224.0.0.13 224.0.0.1 224.0.0.102 | ||
IP MTU: 1500 bytes (using link MTU) | ||
IP primary address route-preference: 0, tag: 0 | ||
IP proxy ARP : disabled | ||
IP Local Proxy ARP : disabled | ||
IP multicast routing: enabled | ||
IP icmp redirects: disabled | ||
IP directed-broadcast: disabled | ||
IP Forwarding: disabled | ||
IP icmp unreachables (except port): disabled | ||
IP icmp port-unreachable: enabled | ||
IP unicast reverse path forwarding: loose allow default | ||
IP load sharing: none | ||
IP interface statistics last reset: never | ||
IP interface software stats: (sent/received/forwarded/originated/consumed) | ||
Unicast packets : 6981/6679953/3319/3663/27712276 | ||
Unicast bytes : 1262676/506182750/756646/266576/2028632576 | ||
Multicast packets : 1471045/57482658/0/1471045/74522267 | ||
Multicast bytes : 73553346/8727589702/0/100032156/8455329787 | ||
Broadcast packets : 0/0/0/0/0 | ||
Broadcast bytes : 0/0/0/0/0 | ||
Labeled packets : 0/0/0/0/0 | ||
Labeled bytes : 0/0/0/0/0 | ||
WCCP Redirect outbound: disabled | ||
WCCP Redirect inbound: disabled | ||
WCCP Redirect exclude: disabled |
Oops, something went wrong.