Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Added CRC and Abort Values to ios_show_interfaces template #673

Merged
merged 1 commit into from
May 1, 2020
Merged

Conversation

mtbutler07
Copy link
Contributor

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT

ios_show_interfaces
Cisco IOS
show interfaces

SUMMARY

Added CRC and abort values to ios_show_interfaces template.
Additionally, this allows for catching input errors for tunnel, loopback, and serial interfaces

CLI Output

Tunnel0 is up, line protocol is up 
  Hardware is Tunnel
  Interface is unnumbered. Using address of FastEthernet0/1/0.50 (192.20.194.29)
  MTU 17912 bytes, BW 100 Kbit/sec, DLY 50000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation TUNNEL, loopback not set
  Keepalive not set
  Tunnel source 192.20.194.29 (FastEthernet0/1/0.50), destination 192.20.18.147
   Tunnel Subblocks:
      src-track:
         Tunnel0 source tracking subblock associated with FastEthernet0/1/0.50
          Set of tunnels with source FastEthernet0/1/0.50, 4 members (includes iterators), on interface <OK>
  Tunnel protocol/transport PIM/IPv4
  Tunnel TOS/Traffic Class 0xC0,  Tunnel TTL 255
  Tunnel transport MTU 1472 bytes
  Tunnel is transmit only
  Tunnel transmit bandwidth 8000 (kbps)
  Tunnel receive bandwidth 8000 (kbps)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/0 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 IP multicasts)
     0 runts, 0 giants, 0 throttles
     42 input errors, 42 CRC, 0 frame, 0 overrun, 0 ignored, 42 abort
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 unknown protocol drops
     0 output buffer failures, 0 output buffers swapped out

Structured output using old template

[
	{
		"ADDRESS": "",
		"BANDWIDTH": "100 Kbit",
		"BIA": "",
		"DELAY": "50000 usec",
		"DESCRIPTION": "",
		"DUPLEX": "",
		"ENCAPSULATION": "TUNNEL",
		"HARDWARE_TYPE": "Tunnel",
		"INPUT_ERRORS": "",
		"INPUT_PACKETS": "0",
		"INPUT_RATE": "0",
		"INTERFACE": "Tunnel0",
		"IP_ADDRESS": "",
		"LAST_INPUT": "never",
		"LAST_OUTPUT": "never",
		"LAST_OUTPUT_HANG": "never",
		"LINK_STATUS": "up",
		"MTU": "17912",
		"OUTPUT_ERRORS": "0",
		"OUTPUT_PACKETS": "0",
		"OUTPUT_RATE": "0",
		"PROTOCOL_STATUS": "up",
		"QUEUE_STRATEGY": "fifo",
		"SPEED": ""
	}
]

Structured output using new template

[
	{
		"ABORT": "42",
		"ADDRESS": "",
		"BANDWIDTH": "100 Kbit",
		"BIA": "",
		"CRC": "42",
		"DELAY": "50000 usec",
		"DESCRIPTION": "",
		"DUPLEX": "",
		"ENCAPSULATION": "TUNNEL",
		"HARDWARE_TYPE": "Tunnel",
		"INPUT_ERRORS": "42",
		"INPUT_PACKETS": "0",
		"INPUT_RATE": "0",
		"INTERFACE": "Tunnel0",
		"IP_ADDRESS": "",
		"LAST_INPUT": "never",
		"LAST_OUTPUT": "never",
		"LAST_OUTPUT_HANG": "never",
		"LINK_STATUS": "up",
		"MTU": "17912",
		"OUTPUT_ERRORS": "0",
		"OUTPUT_PACKETS": "0",
		"OUTPUT_RATE": "0",
		"PROTOCOL_STATUS": "up",
		"QUEUE_STRATEGY": "fifo",
		"SPEED": ""
	}
]

@jmcgill298 jmcgill298 merged commit a6a6528 into networktocode:master May 1, 2020
thomasblass pushed a commit to thomasblass/ntc-templates that referenced this pull request Oct 25, 2020
guillaume-mbali pushed a commit to unyc-io/ntc-templates that referenced this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants