ntc-templates icon indicating copy to clipboard operation
ntc-templates copied to clipboard

cisco_asa show interface detail issue

Open gbs098 opened this issue 1 year ago • 3 comments

ISSUE TYPE

TextFSMError: State Error raised. Rule Line: 118. Input Line: Hardware is Virtual MAC address 0000.0000.0000, MTU 1500

TEMPLATE USING
cisco_asa_show_interface_detail.textfsm
SAMPLE COMMAND OUTPUT
Interface Virtual0 "_internal_loopback", is up, line protocol is up
  Hardware is Virtual   MAC address 0000.0000.0000, MTU 1500
        IP address 127.1.0.1, subnet mask 255.255.0.0
  Traffic Statistics for "_internal_loopback":
        1 packets input, 28 bytes
        1 packets output, 28 bytes
        1 packets dropped
      1 minute input rate 0 pkts/sec,  0 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,  0 bytes/sec
      5 minute output rate 0 pkts/sec,  0 bytes/sec
      5 minute drop rate, 0 pkts/sec
  Control Point Interface States:
        Interface number is 16
        Interface config status is active
        Interface state is active
SUMMARY
STEPS TO REPRODUCE

EXPECTED RESULTS
ACTUAL RESULTS

gbs098 avatar Oct 06 '23 07:10 gbs098

Hello @gbs098 This issue seems to be caused by the fact that hardware type, MAC address, and MTU are all on the same line. Hardware is Virtual MAC address 0000.0000.0000, MTU 1500

I'll take a poke at this one.

Edit: Do you also have similar issue for ASA show interfaces output? (It may be broken for the looback interface too.)

mjbear avatar Dec 29 '23 01:12 mjbear

@gbs098 Please confirm your example output is definitely the show interface detail from an ASA and not just show interface?

Thank you.

mjbear avatar Dec 29 '23 02:12 mjbear

@gbs098 I submitted PR #1583 which modifies the template to make things work.

Worth noting that I did not add a capture group for packets dropped since it did not match up with other more specific "packet drop" capture groups. The input/output packets and bytes are captured though.

mjbear avatar Dec 29 '23 03:12 mjbear

This was merged, please close issue.

ryanmerolle avatar Jun 19 '24 03:06 ryanmerolle