-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template for ASA show acl brief (#1772)
* Added Cisco ASA show_access-list_brief command * Fix index and tests --------- Co-authored-by: SASCHA SCHWARZ <sascha.schwarz1@kyndryl.com>
- Loading branch information
1 parent
d01d767
commit ee792df
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/cisco_asa_show_access-list_brief.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
23 changes: 23 additions & 0 deletions
23
tests/cisco_asa/show_access-list_brief/cisco_asa_show_access-list_brief.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |