networktocode/ntc-templates

cisco_asa show interface detail issue

Closed this issue · 4 comments

gbs098 commented
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

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.)

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

Thank you.

@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.

This was merged, please close issue.