-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cisco_asa_show_running-config_access-group (#1962)
Co-authored-by: Michael Bear <[email protected]>
- Loading branch information
1 parent
d747be0
commit 2b8a265
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
ntc_templates/templates/cisco_asa_show_running-config_access-group.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,6 @@ | ||
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" |
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
7 changes: 7 additions & 0 deletions
7
tests/cisco_asa/show_running-config_access-group/show_running-config_access-group.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,7 @@ | ||
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 |
16 changes: 16 additions & 0 deletions
16
tests/cisco_asa/show_running-config_access-group/show_running-config_access-group.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,16 @@ | ||
--- | ||
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" |