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

wip

parent d1731a79
......@@ -71,8 +71,7 @@ class LopcommNetconfClient:
self.logger.debug('Got new notification from %s...' % (self.address,))
result_in_xml = result._raw
data_dict = xmltodict.parse(result_in_xml)
result_in_json = json.dumps(data_dict)
self.json_logger.info('', extra={'data': result_in_json})
self.json_logger.info('', extra={'data': data_dict})
def close(self):
# Close not compatible between ncclient and netconf server
......
......@@ -132,6 +132,7 @@ setup-eggs =
[eggs]
recipe = zc.recipe.egg
python = python3.8
eggs =
websocket-client
${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