-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for avaya_ers_show_logging_config command (#301)
* Initial Commit * Apply suggestions from code review Co-Authored-By: kadecole <[email protected]> * Updates from code review
- Loading branch information
1 parent
b4783f0
commit 7121ac1
Showing
4 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Value EVENT_LOGGING (.+?) | ||
Value VOLATILE (.+?) | ||
Value LOG_TYPES (.+?) | ||
Value NV_STORAGE_TYPES (.+?) | ||
Value REMOTE_LOGGING (.+?) | ||
Value REMOTE_ADDRESS (.+?) | ||
Value SECONDARY_ADDRESS (.+?) | ||
Value REMOTE_TYPES (.+?) | ||
Value FACILITY (.+?) | ||
|
||
Start | ||
^Event Logging:\s+${EVENT_LOGGING}\s*$$ | ||
^Volatile Logging Option:\s+${VOLATILE}\s*$$ | ||
^Event Types To Log:\s+${LOG_TYPES}\s*$$ | ||
^Event Types To Log To NV Storage:\s+${NV_STORAGE_TYPES}\s*$$ | ||
^Remote Logging:\s+${REMOTE_LOGGING}\s*$$ | ||
^Remote Logging Address:\s+${REMOTE_ADDRESS}\s*$$ | ||
^Secondary Remote Logging Address:\s+${SECONDARY_ADDRESS}\s*$$ | ||
^Event Types To Log Remotely:\s+${REMOTE_TYPES}\s*$$ | ||
^Facility:\s+${FACILITY}\s*$$ | ||
^\s*$$ | ||
^. -> Error |
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
12 changes: 12 additions & 0 deletions
12
tests/avaya_ers/show_logging_config/avaya_ers_show_logging_config.parsed
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,12 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- event_logging: 'Enabled' | ||
volatile: 'Latch' | ||
log_types: 'Critical, Serious, Informational' | ||
nv_storage_types: Critical, Serious | ||
remote_logging: 'Enabled' | ||
remote_address: '0.0.0.0' | ||
secondary_address: '0.0.0.0' | ||
remote_types: 'Critical, Serious, Informational' | ||
facility: 'Daemon' |
9 changes: 9 additions & 0 deletions
9
tests/avaya_ers/show_logging_config/avaya_ers_show_logging_config.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,9 @@ | ||
Event Logging: Enabled | ||
Volatile Logging Option: Latch | ||
Event Types To Log: Critical, Serious, Informational | ||
Event Types To Log To NV Storage: Critical, Serious | ||
Remote Logging: Enabled | ||
Remote Logging Address: 0.0.0.0 | ||
Secondary Remote Logging Address: 0.0.0.0 | ||
Event Types To Log Remotely: Critical, Serious, Informational | ||
Facility: Daemon |