Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
f5270783
Commit
f5270783
authored
Oct 20, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
88edb73f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
software/ors-amarisoft/k/krequest-cb5.enb+
software/ors-amarisoft/k/krequest-cb5.enb+
+5
-2
software/ors-amarisoft/k/kslap.py
software/ors-amarisoft/k/kslap.py
+6
-0
No files found.
software/ors-amarisoft/k/krequest-cb5.enb+
View file @
f5270783
...
...
@@ -16,6 +16,8 @@ CB5 = "COMP-4020"
supply(kamari, computer_guid=CB5)
# Core Network + SIM
icore = kslap.request(kamari,
software_type="core-network",
partition_reference="CB5-CORE",
...
...
@@ -27,15 +29,15 @@ icore = kslap.request(kamari,
isim1 = kslap.iSIM(icore, 1)
# eNB
ienb = kslap.request(kamari,
software_type="enb",
partition_reference="CB5-ENB",
filter_kw={"computer_guid": CB5},
partition_parameter_kw={"_": json.dumps({
mme_list: {'1': {'mme_addr': icore
['core-network-ipv6']}},
'mme_list': {'1': {'mme_addr': kslap.conn(icore)
['core-network-ipv6']}},
})})
# eref returns full reference for ienb's shared instance with given ref.
def eref(ref):
enb_ref = kslap.ref_of_instance(ienb)
...
...
@@ -72,6 +74,7 @@ RU2['cpri_link']['sfp_port'] = 2
iru1 = iENB(eref('RU1'), RU1)
iru2 = iENB(eref('RU2'), RU2)
# Cells
CELL1 = {
'cell_type': 'lte',
...
...
software/ors-amarisoft/k/kslap.py
View file @
f5270783
...
...
@@ -71,6 +71,12 @@ def instance_by_ref(ref):
return inst
"""
# conn returns connection parameters of an instance.
def
conn
(
inst
):
return
json
.
loads
(
inst
.
getConnectionParameterDict
()[
'_'
])
# iSIM adds to core a shared SIM instance with specified number.
def
iSIM
(
core
,
sim_n
):
core_ref
=
ref_of_instance
(
core
)
...
...
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