Commit 6d2c4db1 authored by Lu Xu's avatar Lu Xu 👀

wip

parent fcc2a142
......@@ -36,7 +36,7 @@ md5sum = b34fe47a73890097fbc6ea6374aeb38d
[lopcomm-rrh-software.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-software.jinja2.py
md5sum = c733d58812321c39424c434bda6b6529
md5sum = b7bbcd55143470be8968c395f771fd17
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
......
......@@ -50,7 +50,7 @@ class LopcommNetconfClient:
def custom_rpc_request(self, rpc_xml):
try:
self.logger.info('Sending custom RPC request...')
response = self.conn.dispatch(rpc_xml)
response = self.conn.dispatch(to_ele(rpc_xml))
if response.ok:
self.logger.info('Custom RPC request sent successfully')
else:
......@@ -94,13 +94,11 @@ if __name__ == '__main__':
nc.connect("fe80::20a:ff:fe00:1020%slaptap6", 830, "oranuser", "oranpassword")
# Load your custom RPC XML from a file or construct it manually
custom_rpc_xml = """
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<software-install xmlns="urn:o-ran:software-management:1.0">
<slot-name>slot-2</slot-name>
<file-names>PR.PRM61C70V1002.K010927.tar.g</file-names>
</software-install>
</rpc>
""".strip()
<software-install xmlns="urn:o-ran:software-management:1.0">
<slot-name>slot-2</slot-name>
<file-names>PR.PRM61C70V1002.K010927.tar.g</file-names>
</software-install>
"""
nc.custom_rpc_request(custom_rpc_xml)
break
......
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