Commit 96d6aad7 authored by Lu Xu's avatar Lu Xu 👀

wip

parent ac3786d9
......@@ -24,7 +24,7 @@ md5sum = 6e0a052bd0ca08cc0c7b4880d3deffcc
[lopcomm-rrh-stats.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-stats.jinja2.py
md5sum = 37a5d971626f44d8dfd734ebce8c8473
md5sum = 00439dde2f13ec427044cd94a0eee743
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
......
......@@ -23,7 +23,7 @@ class LopcommNetconfClient:
if {{ testing }}:
return
def connect(host, port, user, password):
if {{ testing }}:
......@@ -44,9 +44,11 @@ class LopcommNetconfClient:
result = None
while result == None:
result = conn.take_notification(block=True, timeout=60)
print(result)
import pdb; pdb.set_trace()
#self.logger.info('', extra={'data': r})
result_in_xml = result._raw
data_dict = xmltodict.parse(result_in_xml)
result_in_json = json.dumps(data_dict)
print(result_in_json)
self.logger.info('', extra={'data': result_in_json})
if __name__ == '__main__':
#LOG_FORMAT = '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(message)s'
......
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