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

Create cisco_asa_show_running-config_access-group #1959

Closed
wollmannbruno opened this issue Jan 6, 2025 · 4 comments
Closed

Create cisco_asa_show_running-config_access-group #1959

wollmannbruno opened this issue Jan 6, 2025 · 4 comments

Comments

@wollmannbruno
Copy link
Contributor

Environment

  • ntc-templates version: 6.0.0

Proposed Functionality

Create a new template for the show running-config access-group command on the Cisco ASA

Use Case

Ingest the access-list configured on an interface.

Proposed Template

Value ACCESS_LIST (\S+)
Value INTERFACE (\S+)


Start
  ^access-group\s+${ACCESS_LIST}\s+in\s+interface\s+${INTERFACE}\s* -> Record
  ^. -> Error "Did not match any entries"

EOF

Raw Input

# show running-config access-group
access-group INSIDE_acl in interface inside
access-group dmz1_acl in interface dmz1
access-group dmz2_acl in interface dmz2
access-group dmz3_acl in interface dmz3
access-group dmz4 in interface dmz4
access-group dmz5 in interface dmz5
access-group OUTSIDE_acl in interface outside

Output

---
parsed_sample:
  - access_list: "INSIDE_acl"
    interface: "inside"
  - access_list: "dmz1_acl"
    interface: "dmz1"
  - access_list: "dmz2_acl"
    interface: "dmz2"
  - access_list: "dmz3_acl"
    interface: "dmz3"
  - access_list: "dmz4"
    interface: "dmz4"
  - access_list: "dmz5"
    interface: "dmz5"
  - access_list: "OUTSIDE_acl"
    interface: "outside"
@mjbear
Copy link
Contributor

mjbear commented Jan 6, 2025

Proposed Functionality

Create a new template for the show running-config access-group command on the Cisco ASA

Hello @wollmannbruno
Are you interested in submitting a pull request (PR) to submit this template to the project?

@wollmannbruno
Copy link
Contributor Author

Hi @mjbear
I just submitted PR #1962.

Thanks.

@mjbear
Copy link
Contributor

mjbear commented Jan 10, 2025

@jmcgill298
This issue can be resolved since PR #1962 was merged in. Thank you!

@jmcgill298
Copy link
Contributor

Thanks @mjbear

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

3 participants