Skip to content

Commit

Permalink
Fix: inner vlan parsing cisco ios show interfaces (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwood92 authored Oct 11, 2024
1 parent 20f82f6 commit 70dd6cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ntc_templates/templates/cisco_ios_show_interfaces.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Start
^\s+Description:\s+${DESCRIPTION}\s*$$
^\s+Internet\s+address\s+is\s+${IP_ADDRESS}\/${PREFIX_LENGTH}\s*$$
^\s+MTU\s+${MTU}.*BW\s+${BANDWIDTH}.*DLY\s+${DELAY},\s*$$
^\s+Encapsulation\s+${ENCAPSULATION}, Vlan ID\s+${VLAN_ID}.+$$
^\s+Encapsulation\s+${ENCAPSULATION}, outer ID\s+${VLAN_ID_OUTER}, inner ID\s+${VLAN_ID_INNER}.+$$
^\s+Encapsulation\s+${ENCAPSULATION}, Vlan ID\s+${VLAN_ID}
^\s+Encapsulation\s+${ENCAPSULATION}, outer ID\s+${VLAN_ID_OUTER}, inner ID\s+${VLAN_ID_INNER}
^\s+Encapsulation\s+${ENCAPSULATION},.+$$
^\s+Last\s+input\s+${LAST_INPUT},\s+output\s+${LAST_OUTPUT},\s+output\s+hang\s+${LAST_OUTPUT_HANG}\s*$$
^\s+Input\s+queue:\s+${QUEUE_SIZE}\/${QUEUE_MAX}\/${QUEUE_DROPS}\/${QUEUE_FLUSHES}\s+\(size\/max\/drops\/flushes\);\s+Total output\s+drops:\s+${QUEUE_OUTPUT_DROPS}\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ parsed_sample:
runts: ""
speed: ""
vlan_id: ""
vlan_id_inner: "1"
vlan_id_inner: "13"
vlan_id_outer: "813"

0 comments on commit 70dd6cf

Please sign in to comment.