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
Labels
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
e405b3f0
Commit
e405b3f0
authored
Oct 31, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4fe5706a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+16
-4
software/ors-amarisoft/config/out/enb.cfg
software/ors-amarisoft/config/out/enb.cfg
+8
-2
No files found.
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
e405b3f0
...
...
@@ -44,7 +44,12 @@
com_addr: "{{ slap_configuration['configuration.com_addr'] }}:{{ slap_configuration['configuration.com_ws_port'] }}",
{%- endif %}
{%- if len(list(icell_dict|dictsort | selectattr('1._.cell_type', '==', 'lte'))) > 0 %}
{# do we have LTE cells and/or NR cells ? #}
{%- set do_lte = len(list(icell_dict|dictsort | selectattr('1._.cell_type', '==', 'lte'))) > 0 %}
{%- set do_nr = len(list(icell_dict|dictsort | selectattr('1._.cell_type', '==', 'nr'))) > 0 %}
{% if do_lte %}
// LTE core network + XXX X2 peers
mme_list: [
{%- for _, mme in slapparameter_dict.get('mme_list',
{'1':{'mme_addr': slap_configuration['configuration.mme_addr']}})
...
...
@@ -56,20 +61,23 @@
],
{%- endif %}
// XXX only if slapparameter_dict.get('afm_list') || has NR cell ?
{% if do_nr %}
// NR core network + XXX Xn pers
afm_list: [
{%- for _, afm in slapparameter_dict.get('afm_list',
{%-
for _, afm in slapparameter_dict.get('afm_list',
{'1':{'afm_addr': slap_configuration['configuration.amf_addr']}})
| dictsort %}
{
afm_addr: "{{ afm['afm_addr'] }}",
},
{%- endfor %}
{%-
endfor %}
],
{%- endif %}
{#- X2/Xn TODO: add info about peers as shared instances - one instance per peer *ENB*.
then query SlapOS Master about cells configured on that peer ENB and
depending on whether LTE and/or NR cells are there add X2 and/or Xn peers #}
{# XXX move ^^^ ? #}
{% if slapparameter_dict.get('xn_peers', '') %}
xn_peers: [
{%- for k in slapparameter_dict['xn_peers'] -%}
...
...
@@ -88,10 +96,14 @@
gtp_addr: "{{ slap_configuration['configuration.gtp_addr'] }}",
{% endif %}
{%- if do_lte %}
enb_id: {{ cfg('enb_id') }},
{%- endif %}
{%- if do_nr %}
gnb_id: {{ cfg('gnb_id') }},
gnb_id_bits: {{ cfg('gnb_id_bits') }},
en_dc_support: true,
{%- endif %}
// LTE cells
cell_list: [
...
...
software/ors-amarisoft/config/out/enb.cfg
View file @
e405b3f0
...
...
@@ -22,13 +22,19 @@
tx_gain: [-21, -21, -11, -11],
rx_gain: [-22, -12],
com_addr: "127.0.1.2:9001",
// LTE core network + XXX X2 peers
mme_list: [
{
mme_addr: "127.0.1.100",
},
],
// XXX only if slapparameter_dict.get('afm_list') || has NR cell ?
// NR core network + XXX Xn pers
afm_list: [
{
afm_addr: "127.0.1.100",
...
...
@@ -37,8 +43,8 @@
gtp_addr: "127.0.1.1",
gtp_addr: "127.0.1.1",
enb_id: 0x1A2D0,
gnb_id: 0x12345,
...
...
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