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
Tom Niget
slapos
Commits
08e22a8a
Commit
08e22a8a
authored
Jul 08, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
a75f4df2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
188 additions
and
4 deletions
+188
-4
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+6
-2
software/ors-amarisoft/instance-ors-ue-input-schema.json
software/ors-amarisoft/instance-ors-ue-input-schema.json
+59
-0
software/ors-amarisoft/instance-ors-ue-schema.json
software/ors-amarisoft/instance-ors-ue-schema.json
+6
-0
software/ors-amarisoft/instance-ors-ue.jinja2.cfg
software/ors-amarisoft/instance-ors-ue.jinja2.cfg
+105
-0
software/ors-amarisoft/instance-ors.cfg
software/ors-amarisoft/instance-ors.cfg
+11
-1
software/ors-amarisoft/instance-ue.jinja2.cfg
software/ors-amarisoft/instance-ue.jinja2.cfg
+1
-1
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
08e22a8a
...
...
@@ -20,7 +20,7 @@ md5sum = 2e30c07c6436895ac0bc6c177cf7013d
[template-ors]
filename = instance-ors.cfg
md5sum = f
5c76c3443b75569eb18503dce38e783
md5sum = f
025ab93e016fa3609a1bb4de69245ec
[slaplte.jinja2]
_update_hash_filename_ = slaplte.jinja2
...
...
@@ -94,13 +94,17 @@ md5sum = 7bc8aab138bed0de6f48283e86853cf6
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
md5sum = 315633c8d09b84ef1c699094810c654a
[template-ors-ue]
_update_hash_filename_ = instance-ors-ue.jinja2.cfg
md5sum = cc4e7b37296ad9465fcb674747d04860
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
md5sum = dab992c02a363e00cdc86f102a7ae489
[template-ue]
_update_hash_filename_ = instance-ue.jinja2.cfg
md5sum =
574e525659bd73c5385c78469adadf91
md5sum =
66fc1abff955045c7441f02f940c309b
[template-obsolete]
_update_hash_filename_ = instance-obsolete.jinja2.cfg
...
...
software/ors-amarisoft/instance-ors-ue-input-schema.json
0 → 100644
View file @
08e22a8a
{
"type"
:
"object"
,
"$schema"
:
"http://json-schema.org/draft-04/schema"
,
"title"
:
"Input Parameters"
,
"properties"
:
{
"bandwidth"
:
{
"title"
:
"Bandwidth"
,
"description"
:
"Downlink Bandwidth"
,
"type"
:
"string"
,
"enum"
:
[
"1.4 MHz"
,
"3 MHz"
,
"5 MHz"
,
"10 MHz"
,
"15 MHz"
,
"20 MHz"
],
"default"
:
"20 MHz"
},
"n_antenna_dl"
:
{
"$ref"
:
"ru/common.json#/properties/n_antenna_dl"
,
"enum"
:
[
1
,
2
],
"default"
:
2
},
"n_antenna_ul"
:
{
"$ref"
:
"ru/common.json#/properties/n_antenna_ul"
,
"enum"
:
[
1
,
2
],
"default"
:
2
},
"rf_mode"
:
{
"$ref"
:
"cell/common.json#/properties/rf_mode"
,
"default"
:
"tdd"
},
"dl_earfcn"
:
{
"$ref"
:
"cell/lte/input-schema.json#/properties/dl_earfcn"
},
"tx_gain"
:
{
"$ref"
:
"ru/common.json#/properties/tx_gain"
},
"rx_gain"
:
{
"$ref"
:
"ru/common.json#/properties/rx_gain"
},
"log_phy_debug"
:
{
"$ref"
:
"instance-enb-input-schema.json#/properties/log_phy_debug"
},
"disable_sdr"
:
{
"default"
:
false
,
"title"
:
"Disable SDR"
,
"description"
:
"Disables radio"
,
"type"
:
"boolean"
}
}
}
software/ors-amarisoft/instance-ors-ue-schema.json
0 → 100644
View file @
08e22a8a
{
"$schema"
:
"http://json-schema.org/draft-04/schema"
,
"description"
:
"Values returned by ORS UE instantiation (stub)"
,
"type"
:
"object"
,
"properties"
:
{}
}
software/ors-amarisoft/instance-ors-ue.jinja2.cfg
0 → 100644
View file @
08e22a8a
{%- set ors_defaults = {
"bandwidth": "20 MHz",
"n_antenna_dl": 2,
"n_antenna_ul": 1,
"rf_mode": "tdd",
"plmn": "00101",
"disable_sdr": false
} %}
{%- for k,v in ors_defaults|dictsort %}
{%- do slapparameter_dict.setdefault(k, v) %}
{%- endfor %}
{#- make real ru/cell/peer/... shared instances to be rejected in ORS mode #}
{%- set ishared_list = slap_configuration.setdefault('slave-instance-list', []) %}
{%- for ishared in ishared_list %}
{%- set _ = json_module.loads(ishared['_']) %}
{%- if 'ru_type' in _ or 'cell_type' in _ %}
{%- do ishared.update({'_': {'REJECT': 1}|tojson}) %}
{%- endif %}
{%- endfor %}
{#- inject ru+cell synthesized from ORS-specific parameters #}
{%- macro iref(name) %}
{{- '%s.%s' % (slap_configuration['instance-title'], name) -}}
{%- endmacro %}
{%- do ishared_list.append({
'slave_title': iref('RU'),
'slave_reference': False,
'_': {
'ru_type': 'sdr',
'ru_link_type': 'sdr',
'sdr_dev_list': [0],
'n_antenna_dl': slapparameter_dict.n_antenna_dl,
'n_antenna_ul': slapparameter_dict.n_antenna_ul,
'tx_gain': ors_version['current-tx-gain'],
'rx_gain': ors_version['current-rx-gain'],
'txrx_active': 'ACTIVE' if (not slapparameter_dict.disable_sdr) else 'INACTIVE',
} |tojson
})
%}
{%- set cell = {
'cell_type': 'lte',
'dl_earfcn': ors_version['current-earfcn'],
'bandwidth': float(slapparameter_dict.bandwidth.removesuffix(' MHz')),
'tac': slapparameter_dict.tac,
'root_sequence_index': slapparameter_dict.root_sequence_index,
}
%}
{%- do cell.update({
'cell_kind': 'enb',
'rf_mode': slapparameter_dict.rf_mode,
'pci': slapparameter_dict.pci,
'cell_id': slapparameter_dict.cell_id,
'tdd_ul_dl_config': slapparameter_dict.tdd_ul_dl_config,
'inactivity_timer': slapparameter_dict.inactivity_timer,
'ru': { 'ru_type': 'ru_ref',
'ru_ref': iref('RU') }
})
%}
{%- do ishared_list.append({
'slave_title': iref('CELL'),
'slave_reference': False,
'_': cell | tojson
})
%}
# code of generic ue
{% include 'instance-ue-base.jinja2.cfg' %}
# let all templates know we are running in ORS mode
[config-base]
context -=
json ors false
context +=
key ors :ors
ors = {{ dumps(ors_version) }}
# add ORS-specific bits to published information
[publish-connection-information]
ors-version = {{ ors_version['ors-version'] }}
frequency-range-rating = {{ ors_version['range'] }}
current-tx-power-estimate = {{ ors_version['power-estimate'] }}
current-tx-gain = {{ ors_version['current-tx-gain'] }}
current-rx-gain = {{ ors_version['current-rx-gain'] }}
current-earfcn = {{ ors_version['current-earfcn'] }}
# hide ru-list, cell-list, peer-list and peer-cell-list from published information
[publish-connection-information]
depends += ${publish-connection-information-ors-cleanup:recipe}
[publish-connection-information-ors-cleanup]
recipe = slapos.recipe.build
init =
publish = self.buildout['publish-connection-information']
del publish['ru-list']
del publish['cell-list']
del publish['peer-list']
del publish['peer-cell-list']
software/ors-amarisoft/instance-ors.cfg
View file @
08e22a8a
...
...
@@ -10,7 +10,7 @@ enb-epc = $${:obsolete}
gnb-epc = $${:obsolete}
epc = $${:obsolete}
mme = $${:obsolete}
ue =
ue =
dynamic-template-ors-ue:output
[dynamic-template-obsolete]
< = jinja2-template-base
...
...
@@ -33,6 +33,16 @@ extra-context +=
import-list +=
rawfile instance-enb-base.jinja2.cfg ${template-enb:target}
[dynamic-template-ors-ue]
< = dynamic-template-ue
url = ${template-ors-ue:target}
filename = instance-ue.cfg
extra-context +=
section ors ors-version
section ors_version ors-version
import-list +=
rawfile instance-ue-base.jinja2.cfg ${template-ue:target}
[ors-version]
recipe = slapos.recipe.build
configuration = $${slap-configuration:configuration}
...
...
software/ors-amarisoft/instance-ue.jinja2.cfg
View file @
08e22a8a
...
...
@@ -69,7 +69,7 @@ inline =
(echo && echo && date "+[%Y/%m/%d %T.%N %Z] Starting UE software..." && echo) >> ${:ue-log};
tail -c 1M ${:ue-log} > ${:ue-log}.tmp;
mv ${:ue-log}.tmp ${:ue-log};
{{ ue }}/lteue ${directory:etc}/ue.cfg >> ${:ue-log} 2>> ${:ue-log};
#
{{ ue }}/lteue ${directory:etc}/ue.cfg >> ${:ue-log} 2>> ${:ue-log};
{% endif %}
### User Equipment (UE)
...
...
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