Skip to content

Commit 70dd6cf

Browse files
authored
Fix: inner vlan parsing cisco ios show interfaces (#1865)
1 parent 20f82f6 commit 70dd6cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ntc_templates/templates/cisco_ios_show_interfaces.textfsm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Start
4949
^\s+Description:\s+${DESCRIPTION}\s*$$
5050
^\s+Internet\s+address\s+is\s+${IP_ADDRESS}\/${PREFIX_LENGTH}\s*$$
5151
^\s+MTU\s+${MTU}.*BW\s+${BANDWIDTH}.*DLY\s+${DELAY},\s*$$
52-
^\s+Encapsulation\s+${ENCAPSULATION}, Vlan ID\s+${VLAN_ID}.+$$
53-
^\s+Encapsulation\s+${ENCAPSULATION}, outer ID\s+${VLAN_ID_OUTER}, inner ID\s+${VLAN_ID_INNER}.+$$
52+
^\s+Encapsulation\s+${ENCAPSULATION}, Vlan ID\s+${VLAN_ID}
53+
^\s+Encapsulation\s+${ENCAPSULATION}, outer ID\s+${VLAN_ID_OUTER}, inner ID\s+${VLAN_ID_INNER}
5454
^\s+Encapsulation\s+${ENCAPSULATION},.+$$
5555
^\s+Last\s+input\s+${LAST_INPUT},\s+output\s+${LAST_OUTPUT},\s+output\s+hang\s+${LAST_OUTPUT_HANG}\s*$$
5656
^\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*$$

tests/cisco_ios/show_interfaces/cisco_ios_show_interfaces5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ parsed_sample:
8282
runts: ""
8383
speed: ""
8484
vlan_id: ""
85-
vlan_id_inner: "1"
85+
vlan_id_inner: "13"
8686
vlan_id_outer: "813"

0 commit comments

Comments
 (0)