freebsd-ports/net-mgmt/py-napalm-logs/files/patch-napalm__logs_config_____init____.py
Martin Wilke 0b08577c4b Parses syslog messages from network devices and produce JSON serializable
Python objects, in a vendor agnostic shape. The output objects are structured
following the OpenConfig or IETF YANG model specifications.

WWW: https://github.com/napalm-automation/napalm-logs

PR:		227719
Submitted by:	freebsd_ports@k-worx.org
Sponsored by:	iXsystems Inc.
2018-05-19 18:41:07 +00:00

12 lines
424 B
Python

--- napalm_logs/config/__init__.py.orig 2018-05-19 10:13:50 UTC
+++ napalm_logs/config/__init__.py
@@ -11,7 +11,8 @@ import napalm_logs.ext.six as six
# config
ROOT_DIR = '/'
-CONFIG_FILE = os.path.join(ROOT_DIR, 'etc', 'napalm', 'logs')
+#CONFIG_FILE = os.path.join(ROOT_DIR, 'etc', 'napalm', 'logs')
+CONFIG_FILE = os.path.join('%%PREFIX%%', 'etc', 'napalm', 'logs')
ADDRESS = '0.0.0.0'
PORT = 514
LISTENER = 'udp'