Skip to content

Commit

Permalink
Adding support for avaya_ers_show_logging_config command (#301)
Browse files Browse the repository at this point in the history
* Initial Commit

* Apply suggestions from code review

Co-Authored-By: kadecole <[email protected]>

* Updates from code review
  • Loading branch information
kadecole authored and jmcgill298 committed Nov 21, 2018
1 parent b4783f0 commit 7121ac1
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/avaya_ers_show_logging_config.template
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ aruba_os_show_ip_interface_brief.template, .*, aruba_os, sh[[ow]] ip in[[terface

avaya_ers_show_mac-address-table.template, .*, avaya_ers, sh[[ow]] mac-a[[ddress-table]]
avaya_ers_show_interface_name.template, .*, avaya_ers, sh[[ow]] in[[terfaces]] n[[ames]]
avaya_ers_show_logging_config.template, .*, avaya_ers, sh[[ow]] lo[[gging]] co[[nfig]]
avaya_ers_show_sys-info.template, .*, avaya_ers, sh[[ow]] sys-[[info]]
avaya_ers_show_vlan.template, .*, avaya_ers, sh[[ow]] vlan
avaya_ers_show_mlt.template, .*, avaya_ers, sh[[ow]] ml[[t]]
Expand Down
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'
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

0 comments on commit 7121ac1

Please sign in to comment.