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

Add template for ASA show acl brief #1772

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Value Filldown ACL_NAME (\S+)
Value Filldown ACL_TOTAL_ELEMENTS (\d+)
Value Filldown ACL_NAME_HASH (0x\w+)
Value Required LINE_HASH (\w{8})
Value GROUP_HASH (\w{8})
Value COUNTER (\w{8})
Value LAST_HIT (\w{8})

Start
^access\-list\s+${ACL_NAME};\s+${ACL_TOTAL_ELEMENTS}\s+elements;\s+name\s+hash:\s+${ACL_NAME_HASH}\s*
^${LINE_HASH}\s+${GROUP_HASH}\s+${COUNTER}\s+${LAST_HIT}\s* -> Record
^\s*$$
^.* -> Error

EOF
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ cisco_asa_show_port-channel_summary.textfsm, .*, cisco_asa, sh[[ow]] po[[rt-chan
cisco_asa_show_running-config_ipsec.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] ips[[ec]]
cisco_asa_show_cpu_usage_detailed.textfsm, .*, cisco_asa, sh[[ow]] cpu u[[sage]] d[[etailed]]
cisco_asa_show_interface_ip_brief.textfsm, .*, cisco_asa, sh[[ow]] int[[erface]] ip br[[ief]]
cisco_asa_show_access-list_brief.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]] (\S+ )?br[[ief]]
cisco_asa_show_interface_detail.textfsm, .*, cisco_asa, sh[[ow]] int[[erface]] d[[etail]]
cisco_asa_show_crypto_ipsec_sa.textfsm, .*, cisco_asa, sh[[ow]] (?:cry[[pto]] ip[[sec]]|ipsec) sa
cisco_asa_show_resource_usage.textfsm, .*, cisco_asa, sh[[ow]] res[[ource]] u[[sage]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
access-list global-acl-test-show-acl-brief; 3 elements; name hash: 0xccfef45c
06228509 d0a2680b 00006049 6178289f
4c8c760a d0a2680b 00000cf5 6245930b
179f5b95 00000000 00000003 61695d26
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
parsed_sample:
- acl_name: "global-acl-test-show-acl-brief"
acl_total_elements: "3"
acl_name_hash: "0xccfef45c"
line_hash: "06228509"
group_hash: "d0a2680b"
counter: "00006049"
last_hit: "6178289f"
- acl_name: "global-acl-test-show-acl-brief"
acl_total_elements: "3"
acl_name_hash: "0xccfef45c"
line_hash: "4c8c760a"
group_hash: "d0a2680b"
counter: "00000cf5"
last_hit: "6245930b"
- acl_name: "global-acl-test-show-acl-brief"
acl_total_elements: "3"
acl_name_hash: "0xccfef45c"
line_hash: "179f5b95"
group_hash: "00000000"
counter: "00000003"
last_hit: "61695d26"
Loading