-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check only root level banner messages for ASA configs (#602)
* Check only root level banner messages for ASA configs --------- Co-authored-by: Carlos Huaccho <[email protected]>
- Loading branch information
1 parent
b35bad3
commit 9c7e197
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
tests/unit/mock/config/parser/base/cisco_asa/asa_nested_banner_received.py
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,13 @@ | ||
from netutils.config.parser import ConfigLine | ||
|
||
data = [ | ||
ConfigLine(config_line="group-policy Grs-POLICY attributes", parents=()), | ||
ConfigLine( | ||
config_line=" banner value This is an", | ||
parents=("group-policy Grs-POLICY attributes",), | ||
), | ||
ConfigLine( | ||
config_line=" banner value example nested banner", | ||
parents=("group-policy Grs-POLICY attributes",), | ||
), | ||
] |
3 changes: 3 additions & 0 deletions
3
tests/unit/mock/config/parser/base/cisco_asa/asa_nested_banner_sent.txt
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,3 @@ | ||
group-policy Grs-POLICY attributes | ||
banner value This is an | ||
banner value example nested banner |
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