diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-09-14 12:36:11 -0400 |
---|---|---|
committer | Vijay Venkatesh Kumar <vv770d@att.com> | 2018-09-14 22:45:39 +0000 |
commit | aeae5597c7dcfa4cf432009c4668dd77aa6b84a1 (patch) | |
tree | 649ae039cf0f6c51539d538fd78ac881202a86cc /snmptrap/snmptrapd.py | |
parent | 09b8dc81f96a1eecca0c3908a02705218a80354d (diff) |
v3 changes and netsnmp compat update
Change-Id: Ia69f70c5e128e800623feb7c1473b6729e52ba29
Issue-ID: DCAEGEN2-630
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'snmptrap/snmptrapd.py')
-rw-r--r-- | snmptrap/snmptrapd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/snmptrap/snmptrapd.py b/snmptrap/snmptrapd.py index 70dc668..325aa55 100644 --- a/snmptrap/snmptrapd.py +++ b/snmptrap/snmptrapd.py @@ -74,6 +74,7 @@ from trapd_get_cbs_config import get_cbs_config from trapd_exit import cleanup_and_exit from trapd_http_session import init_session_obj, close_session_obj, reset_session_obj from trapd_snmpv3 import load_snmpv3_credentials +from trapd_vb_types import pysnmp_to_netsnmp_varbind_convert from trapd_io import roll_all_logs, open_eelf_logs, roll_file, open_file, close_file, ecomp_logger, stdout_logger prog_name = os.path.basename(__file__) @@ -531,7 +532,7 @@ def add_varbind_to_json(vb_idx, vb_oid, vb_type, vb_val): _individual_vb_dict.clear() _individual_vb_dict['varbind_oid'] = vb_oid.prettyPrint() - _individual_vb_dict['varbind_type'] = vb_type + _individual_vb_dict['varbind_type'] = pysnmp_to_netsnmp_varbind_convert(vb_type) _individual_vb_dict['varbind_value'] = vb_val.prettyPrint() _individual_vb_json_str = json.dumps(_individual_vb_dict) |