Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cisco_asa show interface detail issue #1538

Closed
gbs098 opened this issue Oct 6, 2023 · 4 comments
Closed

cisco_asa show interface detail issue #1538

gbs098 opened this issue Oct 6, 2023 · 4 comments

Comments

@gbs098
Copy link

gbs098 commented Oct 6, 2023

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

@mjbear
Copy link
Contributor

mjbear commented Dec 29, 2023

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
Copy link
Contributor

mjbear commented Dec 29, 2023

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

Thank you.

@mjbear
Copy link
Contributor

mjbear commented Dec 29, 2023

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

jvanderaa pushed a commit that referenced this issue Jan 3, 2024
* update ASA interface detail to work with loopback interface issue #1538

* fix spelling of DEFERRED capture group
jvanderaa added a commit that referenced this issue Jan 5, 2024
mjbear added a commit to mjbear/ntc-templates that referenced this issue Jan 7, 2024
* update ASA interface detail to work with loopback interface issue networktocode#1538

* fix spelling of DEFERRED capture group
mjbear added a commit to mjbear/ntc-templates that referenced this issue Jan 7, 2024
mjbear added a commit to mjbear/ntc-templates that referenced this issue Feb 21, 2024
@ryanmerolle
Copy link
Contributor

This was merged, please close issue.

mjbear added a commit to mjbear/ntc-templates that referenced this issue Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants