Closed AJatCDW closed 4 months ago
Another bug in "cisco_asa_show_interface.textfsm" is that it is missing support for sub-interfaces and the VLAN tag specifically.
TextFSM error message:
raise TextFSMError('State Error raised. Rule Line: %s. Input Line: %s'
textfsm.parser.TextFSMError: State Error raised. Rule Line: 66. Input Line: VLAN identifier 11
EXAMPLE OUTPUT:
Interface GigabitEthernet0/3 "TRUNK", is up, line protocol is up
Hardware is i82546GB rev03, BW 1000 Mbps, DLY 10 usec
Auto-Duplex(Full-duplex), Auto-Speed(1000 Mbps)
Input flow control is unsupported, output flow control is off
Description: Guest Trunk ports
MAC address 0000.0c03.0303, MTU 1500
IP address unassigned
859305307 packets input, 212023201961 bytes, 0 no buffer
Received 207223704 broadcasts, 0 runts, 0 giants
73 input errors, 0 CRC, 0 frame, 73 overrun, 0 ignored, 0 abort
0 pause input, 0 resume input
203976621 L2 decode drops
1037190579 packets output, 1146314835358 bytes, 0 underruns
0 pause output, 0 resume output
0 output errors, 0 collisions, 1 interface resets
0 late collisions, 0 deferred
0 input reset drops, 0 output reset drops, 0 tx hangs
input queue (blocks free curr/low): hardware (255/230)
output queue (blocks free curr/low): hardware (255/94)
Traffic Statistics for "TRUNK":
12145268 packets input, 2221423308 bytes
0 packets output, 0 bytes
10926568 packets dropped
1 minute input rate 0 pkts/sec, 59 bytes/sec
1 minute output rate 0 pkts/sec, 0 bytes/sec
1 minute drop rate, 0 pkts/sec
5 minute input rate 0 pkts/sec, 272 bytes/sec
5 minute output rate 0 pkts/sec, 0 bytes/sec
5 minute drop rate, 0 pkts/sec
Interface GigabitEthernet0/3.11 "CLIENT", is up, line protocol is up
Hardware is i82546GB rev03, BW 1000 Mbps, DLY 10 usec
VLAN identifier 11
MAC address 0000.0c03.0303, MTU 1500
IP address 192.168.11.1, subnet mask 255.255.255.0
Traffic Statistics for "CLIENT":
33715 packets input, 2971793 bytes
35457 packets output, 2398566 bytes
4953 packets dropped
Interface GigabitEthernet0/3.33 "IoT", is up, line protocol is up
Hardware is i82546GB rev03, BW 1000 Mbps, DLY 10 usec
VLAN identifier 33
MAC address 0000.0c03.0303, MTU 1500
IP address 192.168.33.1, subnet mask 255.255.255.0
Traffic Statistics for "IoT":
3566101 packets input, 760125916 bytes
4135549 packets output, 530683622 bytes
1719033 packets dropped
Interface GigabitEthernet0/3.99 "Guest", is up, line protocol is up
Hardware is i82546GB rev03, BW 1000 Mbps, DLY 10 usec
VLAN identifier 99
MAC address 0000.0c03.0303, MTU 1500
IP address 192.168.0.1, subnet mask 255.255.255.0
Traffic Statistics for "Guest":
3566101 packets input, 760125916 bytes
4135549 packets output, 530683622 bytes
1719033 packets dropped
cisco_asa_show_interface.textfsm
@AJatCDW VTI support added via PR #1288
@kgrahamjr VLAN support added via PR #1002 (If there is still a bug with VLAN support, please open an issue and include current raw output [so I'm working off the latest]. I'm a volunteer, but with that output I can work up a PR with fixes.)
ISSUE TYPE
TEMPLATE USING
cisco_asa_show_interface.textfsm
SAMPLE COMMAND OUTPUT
SUMMARY
I am trying to grab the interface information from a Cisco 5515 ASA. The physical interfaces (Gigabit and Management) seem to work as expected, however this ASA has Virtual Tunnel Interfaces (VTI) configured and the output is quite different from output of a physical interface.
STEPS TO REPRODUCE
EXPECTED RESULTS
Expect the template to not error out when having to deal with VTIs, but given the fact that they are so different from physical interfaces I don't see how this template would work for those virtual interfaces.
ACTUAL RESULTS