Commit 240b242e authored by Lu Xu's avatar Lu Xu 👀

wip

parent d1731a79
...@@ -71,8 +71,7 @@ class LopcommNetconfClient: ...@@ -71,8 +71,7 @@ class LopcommNetconfClient:
self.logger.debug('Got new notification from %s...' % (self.address,)) self.logger.debug('Got new notification from %s...' % (self.address,))
result_in_xml = result._raw result_in_xml = result._raw
data_dict = xmltodict.parse(result_in_xml) data_dict = xmltodict.parse(result_in_xml)
result_in_json = json.dumps(data_dict) self.json_logger.info('', extra={'data': data_dict})
self.json_logger.info('', extra={'data': result_in_json})
def close(self): def close(self):
# Close not compatible between ncclient and netconf server # Close not compatible between ncclient and netconf server
......
...@@ -132,6 +132,7 @@ setup-eggs = ...@@ -132,6 +132,7 @@ setup-eggs =
[eggs] [eggs]
recipe = zc.recipe.egg recipe = zc.recipe.egg
python = python3.8
eggs = eggs =
websocket-client websocket-client
${pynacl:egg} ${pynacl:egg}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment