Skip to content

Commit

Permalink
Fix index and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 committed Jul 19, 2024
1 parent 30b53ac commit ab5b145
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Value Filldown ACL_NAME (\S+)
Value Filldown ACL_TOT_ELEM (\d+)
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_TOT_ELEM}\s+elements;\s+name\s+hash:\s+${ACL_NAME_HASH}\s* -> Record
^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
EOF
2 changes: 1 addition & 1 deletion ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ 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]]
cisco_asa_show_ospf_neighbor.textfsm, .*, cisco_asa, sh[[ow]] ospf nei[[ghbor]]
cisco_asa_show_vpn-sessiondb.textfsm, .*, cisco_asa, sh[[ow]] vpn-[[sessiondb]]
cisco_asa_show_access-list_brief.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]] (\S+)? br[[ief]]
cisco_asa_show_access-list.textfsm, .*, cisco_asa, sh[[ow]] ac[[cess-list]]
cisco_asa_show_bgp_summary.textfsm, .*, cisco_asa, sh[[ow]] bg[[p]] s[[ummary]]
cisco_asa_show_license_all.textfsm, .*, cisco_asa, (?:fa[[ilover]]\s+e[[xec]]\s+)?sh[[ow]] lic[[ense]] a[[ll]]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +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
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

Check failure on line 3 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

3:15 [quoted-strings] string value is not quoted with double quotes
acl_total_elements: '3'

Check failure on line 4 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

4:25 [quoted-strings] string value is not quoted with double quotes
acl_name_hash: '0xccfef45c'

Check failure on line 5 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

5:20 [quoted-strings] string value is not quoted with double quotes
line_hash: '06228509'

Check failure on line 6 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

6:16 [quoted-strings] string value is not quoted with double quotes
group_hash: d0a2680b

Check failure on line 7 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

7:17 [quoted-strings] string value is not quoted with double quotes
counter: '00006049'

Check failure on line 8 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

8:14 [quoted-strings] string value is not quoted with double quotes
last_hit: 6178289f

Check failure on line 9 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

9:15 [quoted-strings] string value is not quoted with double quotes
- acl_name: global-acl-test-show-acl-brief

Check failure on line 10 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

10:15 [quoted-strings] string value is not quoted with double quotes
acl_total_elements: '3'

Check failure on line 11 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

11:25 [quoted-strings] string value is not quoted with double quotes
acl_name_hash: '0xccfef45c'

Check failure on line 12 in tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml

View workflow job for this annotation

GitHub Actions / yamllint

12:20 [quoted-strings] string value is not quoted with double quotes
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

0 comments on commit ab5b145

Please sign in to comment.