diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-19 11:19:34 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-19 15:39:21 -0400 |
commit | 623442e3e9deab63f9d5c4bf88fd7077bc7f64b5 (patch) | |
tree | 9e80533141b3c03274dafd7d00e29777cd60d6b6 /bin/mod/trapd_settings.py | |
parent | fb0aff81014b052a938a60b0815d6052404be162 (diff) |
codestyle updates and docker
Change-Id: I68dafc17a4e9734bd86f925a720b22a951fe8d5f
Issue-ID: DCAEGEN2-271
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'bin/mod/trapd_settings.py')
-rw-r--r-- | bin/mod/trapd_settings.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/bin/mod/trapd_settings.py b/bin/mod/trapd_settings.py index 735b68c..be87e26 100644 --- a/bin/mod/trapd_settings.py +++ b/bin/mod/trapd_settings.py @@ -23,6 +23,7 @@ __docformat__ = 'restructuredtext' + def init(): # <CONSUL config cache> @@ -36,7 +37,8 @@ def init(): # dns_cache_ip_to_name # key [ip address] -> fqdn # dns_cache_ip_expires - # key [ip address] -> epoch time this entry expires and must be reloaded + # key [ip address] -> epoch time this entry expires and must + # be reloaded global dns_cache_ip_to_name dns_cache_ip_to_name = {} global dns_cache_ip_expires @@ -85,9 +87,9 @@ def init(): all_vb_json_str = "" global trap_uuids_in_buffer trap_uuids_in_buffer = "" - # </trap and varbind dictionaries> + # </trap and varbind dictionaries> - # <publish timers and counters> + # <publish timers and counters> global traps_in_minute traps_in_minute = 0 global last_epoch_second @@ -104,12 +106,12 @@ def init(): seconds_between_retries = 2 global publisher_retries publisher_retries = 2 - # </publish timers and counters> + # </publish timers and counters> - # <publish http request session (persistent as much as possible)> + # <publish http request session (persistent as much as possible)> global http_requ_session http_requ_session = None - # </publish http request session> + # </publish http request session> # <json log of traps published> global json_traps_filename @@ -159,10 +161,9 @@ def init(): SEV_FATAL = 5 global CODE_GENERAL - CODE_GENERAL="100" + CODE_GENERAL = "100" global minimum_severity_to_log - minimum_severity_to_log=3 - + minimum_severity_to_log = 3 # </logging types and severities> |