Cisco IOS-XE `show vlans` throws error if `IPv6` is returned
Closed this issue · 0 comments
gertzakis commented
ISSUE TYPE
- Template Issue with error and raw data
- Bug Report with the library
- Feature - This is only relevant to the library, not templates
- Documentation Report
TEMPLATE USING
Value Required VLAN_ID (\d+)
Value List INTERFACES ([\w\./-]+)
Value List IP_ADDRESSES (\S+)
Start
^VLAN\s+ID:\s+${VLAN_ID} -> Data
^Virtual\s+LAN\s+ID\:\s+${VLAN_ID} -> Data
^No\s+Virtual\s+LANs\s+configured
^\s*$$
^. -> Error
Data
^Virtual\s+LAN\s+ID\:\s+\d.* -> Continue.Record
^Virtual\s+LAN\s+ID\:\s+${VLAN_ID}.*
^VLAN\s+ID:\s+\d+ -> Continue.Record
^VLAN\s+ID:\s+${VLAN_ID}
^\s+This\s+is\s+configured\s+as\s+native\s+Vlan\s+for\s+the\s+following\s+interface\(s\)\s+:\s*$$
^\S+(\s+Native-vlan\s+Tx-type:\s+\S+)?\s*$$
^\s+Protocols\s+Configured
^\s+IP\s+\d+\s+\d+
^\s+MPLS\s+\d+\s+\d+
^\s+MPLS\:\s+\S+
^\s+[vV]LAN\s+Trunk\s+Interfaces?\:\s+${INTERFACES} -> Interface
^VLAN\s+trunk\s+interfaces -> Interface
^[\w\./]+\s*$$
^${INTERFACES}\s+\(\d+\)\s*$$
^\s+IP:\s+${IP_ADDRESSES}\s*$$
^\s+IP\s+${IP_ADDRESSES}\s+\d+\s+\d+
^\s+Other\s+\d+\s+\d+
^\s+Total\s\d+
^\s+\d+\s+packets,
^\s*$$
^. -> Error Data
Interface
^\s*${INTERFACES}\s*$$
^\s*\S+\s+\(\S+\)$$
^\s+Total\s+\d+\s+
^\s+IP\:\s+${IP_ADDRESSES}
^\s+MPLS\:\s+
^\s+Protocols\s+Configured\: -> Data
^\s+This\s+is\s+configured\s+as\s+native\s+Vlan -> Data
^Virtual\s+LAN\s+ID\:\s+\d.* -> Continue.Record
^Virtual\s+LAN\s+ID\:\s+${VLAN_ID}.* -> Data
^VLAN\s+ID:\s+\d+ -> Continue.Record
^VLAN\s+ID:\s+${VLAN_ID} -> Data
^. -> Error Interface
SAMPLE COMMAND OUTPUT
VLAN ID: 3084 (IEEE 802.1Q Encapsulation)
Protocols Configured: Received: Transmitted:
IP 1379273851 1393511050
VLAN trunk interfaces for VLAN ID 3084:
HundredGigE2/0/0.3084
HundredGigE2/0/0.3084 (3084)
IP: 10.247.62.37
Total 1379277713 packets, 120663875433 bytes input
Total 1393518607 packets, 188818944216 bytes output
Total 0 oversubscription packet drops
VLAN ID: 1 (IEEE 802.1Q Encapsulation)
This is configured as native Vlan for the following interface(s) :
HundredGigE2/0/0 Native-vlan Tx-type: Untagged
TenGigabitEthernet2/1/8 Native-vlan Tx-type: Untagged
TenGigabitEthernet2/1/9 Native-vlan Tx-type: Untagged
Port-channel10 Native-vlan Tx-type: Untagged
Port-channel30 Native-vlan Tx-type: Untagged
Protocols Configured: Received: Transmitted:
IP 6541368380841 6472616296020
IPv6 8274039002 30233393091
VLAN trunk interfaces for VLAN ID 1:
HundredGigE2/0/0
HundredGigE2/0/0 (1)
IP: 10.247.53.229
Total 1115482 packets, 416350865 bytes input
Total 1115506 packets, 416321434 bytes output
Total 0 oversubscription packet drops
TenGigabitEthernet2/1/8
TenGigabitEthernet2/1/8 (1)
IP: 10.247.52.197
Total 1022659290 packets, 56136462971 bytes input
Total 879480 packets, 333859004 bytes output
Total 0 oversubscription packet drops
TenGigabitEthernet2/1/9
TenGigabitEthernet2/1/9 (1)
Total 9 packets, 6477 bytes input
Total 89558 packets, 6895966 bytes output
Total 0 oversubscription packet drops
Port-channel10
Port-channel10 (1)
Total 201486441 packets, 25752365485 bytes input
Total 91564 packets, 7050428 bytes output
Port-channel30
Port-channel30 (1)
IP: 10.247.58.138
IPv6: FE80::4
Total 120827408 packets, 15556961031 bytes input
Total 811792 packets, 67689708 bytes output
SUMMARY
EXPECTED RESULTS
Expected to render the template and get data.
ACTUAL RESULTS
The rendering failed with error
"Error: Data. Rule Line: 33. Input Line: IPv6 8274039002 30233393091."