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
Titouan Soulard
slapos
Commits
99b96054
Commit
99b96054
authored
Sep 07, 2023
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw upgrading wip
parent
369d4432
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
+8
-4
software/ors-amarisoft/instance-fdd-enb-input-schema.json
software/ors-amarisoft/instance-fdd-enb-input-schema.json
+8
-4
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
+11
-4
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
99b96054
...
...
@@ -40,7 +40,7 @@ md5sum = 20764fa7554d90d040f3847a9573ef93
[lopcomm-rrh-software.jinja2.py]
_update_hash_filename_ = lopcomm-rrh-software.jinja2.py
md5sum =
673516819477d924f94315ffc734a1cc
md5sum =
126641b08c026206d8728a20135eb964
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
...
...
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
View file @
99b96054
...
...
@@ -118,10 +118,14 @@
"textarea": true,
"type": "string"
},
"customised_download_rpc_xml": {
"title": "Firmware Download XML",
"description": "Customised firmware download XML",
"textarea": true,
"sftp_remote_file_path": {
"title": "SFTP Remote file path",
"description": "SFTP Remote file path. e.g. sftp://user@ip_address:port:/path/to/file",
"type": "string"
},
"sftp_remote_file_path_password": {
"title": "SFTP Remote file path password",
"description": "SFTP Remote file path password",
"type": "string"
},
"firmware_name": {
...
...
software/ors-amarisoft/instance-fdd-enb-input-schema.json
View file @
99b96054
...
...
@@ -117,10 +117,14 @@
"textarea"
:
true
,
"type"
:
"string"
},
"customised_download_rpc_xml"
:
{
"title"
:
"Firmware Download XML"
,
"description"
:
"Customised firmware download XML"
,
"textarea"
:
true
,
"sftp_remote_file_path"
:
{
"title"
:
"SFTP Remote file path"
,
"description"
:
"SFTP Remote file path. e.g. sftp://user@ip_address:port:/path/to/file"
,
"type"
:
"string"
},
"sftp_remote_file_path_password"
:
{
"title"
:
"SFTP Remote file path password"
,
"description"
:
"SFTP Remote file path password"
,
"type"
:
"string"
},
"firmware_name"
:
{
...
...
software/ors-amarisoft/lopcomm-rrh-software.jinja2.py
View file @
99b96054
...
...
@@ -26,23 +26,30 @@ if __name__ == '__main__':
if
running_slot_name
and
nonrunning_slot_name
:
if
running_slot_name
:
nc
.
logger
.
info
(
"One slot is running and one is non-running. Proceeding..."
)
{
%
if
slapparameter_dict
.
get
(
'
customised_download_rpc_xml
'
)
%
}
{
%
if
slapparameter_dict
.
get
(
'
sftp_remote_file_path
'
)
%
}
{
%
set
firmware_name
=
slapparameter_dict
.
get
(
'firmware_name'
)
%
}
{
%
set
remote_file_path
=
slapparameter_dict
.
get
(
'sftp_remote_file_path'
)
%
}
{
%
else
%
}
{
%
set
firmware_name
=
"{{ firmware_name }}"
%
}
{
%
set
remote_file_path
=
{{
remote_file_path
}}
%
}
{
%
endif
%
}
if
running_slot_name_build_version
in
firmware_name
:
nc
.
logger
.
info
(
"Running slot's build-version %s is already updated. Skipping install."
%
running_slot_name_build_version
)
else
:
nc
.
logger
.
info
(
"Current build version: %s"
%
running_slot_name_build_version
)
{
%
if
slapparameter_dict
.
get
(
'
customised_download_rpc_xml
'
)
%
}
{
%
if
slapparameter_dict
.
get
(
'
sftp_remote_file_path
'
)
%
}
download_rpc_xml
=
f"""
{{ slapparameter_dict.get('customised_download_rpc_xml') }}
<software-download xmlns="urn:o-ran:software-management:1.0">
<remote-file-path>
{
remote_file_path
}
/
{
firmware_name
}
</remote-file-path>
<password>
<password>{{slapparameter_dict.get('sftp_remote_file_path_password')}}</password>
</password>
</software-download>
"""
{
%
else
%
}
download_rpc_xml
=
f"""
<software-download xmlns="urn:o-ran:software-management:1.0">
<remote-file-path>{
{ remote_file_path }
}/
{
firmware_name
}
</remote-file-path>
<remote-file-path>
{
remote_file_path
}
/
{
firmware_name
}
</remote-file-path>
</software-download>
"""
{
%
endif
%
}
...
...
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