Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nirina Malard
slapos
Commits
6d2c4db1
Commit
6d2c4db1
authored
Aug 16, 2023
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
fcc2a142
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
+6
-8
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
6d2c4db1
...
...
@@ -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
...
...
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
View file @
6d2c4db1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment