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
4bc14c73
Commit
4bc14c73
authored
Aug 11, 2023
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
b1c9c7e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
+6
-6
software/ors-amarisoft/netconf/software_install.jinja2.xml
software/ors-amarisoft/netconf/software_install.jinja2.xml
+2
-2
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
4bc14c73
...
...
@@ -36,7 +36,7 @@ md5sum = b34fe47a73890097fbc6ea6374aeb38d
[lopcomm-rrh-software.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-software.jinja2.py
md5sum =
f66787b7c94e5d44ef70997141f20192
md5sum =
a41653f586ce17c2d77ef1b0fb86b8a4
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
...
...
@@ -112,7 +112,7 @@ md5sum = 2660e02c5afb3e86436282efa9f9fbc4
[software_install.jinja2.xml]
filename = netconf/software_install.jinja2.xml
md5sum =
9efdb301023149d3785c814fb5a5318f
md5sum =
eda80231b0417d3e6391abfaa1b9cf29
[software.cfg.html]
_update_hash_filename_ = gadget/software.cfg.html
...
...
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
View file @
4bc14c73
...
...
@@ -46,14 +46,14 @@ class LopcommNetconfClient:
self
.
logger
.
info
(
'Connection to %s successful'
%
(
self
.
address
,))
def
edit_config
(
self
,
config
_files
):
for
config_file
in
config
_files
:
with
open
(
config
_file
)
as
f
:
config
_xml
=
f
.
read
()
def
rpc_request
(
self
,
rpc
_files
):
for
rpc_file
in
rpc
_files
:
with
open
(
rpc
_file
)
as
f
:
rpc
_xml
=
f
.
read
()
try
:
self
.
logger
.
info
(
'Sending software management RPC request...'
)
self
.
conn
.
edit_config
(
target
=
'running'
,
config
=
config
_xml
)
self
.
conn
.
rpc
(
target
=
'running'
,
config
=
rpc
_xml
)
self
.
logger
.
info
(
'Software management RPC request sent successfully'
)
except
RPCError
as
e
:
self
.
logger
.
error
(
'Error sending software management RPC request: %s'
%
e
)
...
...
@@ -68,7 +68,7 @@ if __name__ == '__main__':
while
True
:
try
:
nc
.
connect
(
"{{ netaddr.IPAddress(slap_configuration.get('tap-ipv6-gateway', '')) }}"
,
830
,
"oranuser"
,
"oranpassword"
)
nc
.
edit_config
([
"{{ CreateProcessingEle_template }}"
,
"{{ cu_config_template
}}"
])
nc
.
rpc_request
([
"{{ software_install_template
}}"
])
break
except
Exception
as
e
:
nc
.
logger
.
debug
(
'Got exception, waiting 10 seconds before reconnecting...'
)
...
...
software/ors-amarisoft/netconf/software_install.jinja2.xml
View file @
4bc14c73
<
software-install
xmlns=
"urn:o-ran:software-management:1.0"
>
<
config
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>
\ No newline at end of file
</config>
\ No newline at end of file
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