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
99688182
Commit
99688182
authored
Dec 26, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
05f9c3e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
22 deletions
+44
-22
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+4
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+3
-0
software/ors-amarisoft/k/krequest-cb5.enb+
software/ors-amarisoft/k/krequest-cb5.enb+
+4
-1
software/ors-amarisoft/k/krequest-ors.enb.old
software/ors-amarisoft/k/krequest-ors.enb.old
+4
-0
software/ors-amarisoft/slaplte.jinja2
software/ors-amarisoft/slaplte.jinja2
+7
-11
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+22
-8
No files found.
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
99688182
...
@@ -8,8 +8,10 @@
...
@@ -8,8 +8,10 @@
{%- if _standalone is defined %}
{%- if _standalone is defined %}
{%- set iru_dict = {} %}
{%- set iru_dict = {} %}
{%- set icell_dict = {} %}
{%- set icell_dict = {} %}
{%- set ipeer_dict = {} %}
{%- set ipeercell_dict = {} %}
{%- set ipeercell_dict = {} %}
{%- do slaplte.load_iru_and_icell(iru_dict, icell_dict, icell_kind='enb') %}
{%- do slaplte.load_iru_and_icell(iru_dict, icell_dict, icell_kind='enb') %}
{%- do slaplte.load_ipeer(ipeer_dict) %}
{%- do slaplte.load_ipeercell(ipeercell_dict) %}
{%- do slaplte.load_ipeercell(ipeercell_dict) %}
{%- do slaplte.check_loaded_everything() %}
{%- do slaplte.check_loaded_everything() %}
{%- endif %}
{%- endif %}
...
@@ -56,7 +58,7 @@
...
@@ -56,7 +58,7 @@
{%- for peercell_ref, ipeercell in ipeercell_dict|dictsort %}
{%- for peercell_ref, ipeercell in ipeercell_dict|dictsort %}
{%- set ncell = ipeercell['_'] %}
{%- set ncell = ipeercell['_'] %}
{
{
{%- if ncell.
peer_
cell_type == 'lte' %}
{%- if ncell.cell_type == 'lte' %}
rat: "eutra",
rat: "eutra",
cell_id: {{ ncell.e_cell_id }}, // -> {{ peercell_ref }}
cell_id: {{ ncell.e_cell_id }}, // -> {{ peercell_ref }}
n_id_cell: {{ ncell.pci }},
n_id_cell: {{ ncell.pci }},
...
@@ -64,7 +66,7 @@
...
@@ -64,7 +66,7 @@
tac: {{ ncell.tac }},
tac: {{ ncell.tac }},
allowed_meas_bandwidth: {{ jlte_n_rb_dl(ncell.bandwidth) }},
allowed_meas_bandwidth: {{ jlte_n_rb_dl(ncell.bandwidth) }},
antenna_port_1: false, // XXX XXX XXX stub
antenna_port_1: false, // XXX XXX XXX stub
{%- elif ncell.
peer_
cell_type == 'nr' %}
{%- elif ncell.cell_type == 'nr' %}
rat: "nr",
rat: "nr",
nr_cell_id: {{ ncell.nr_cell_id }}, // -> {{ peercell_ref }}
nr_cell_id: {{ ncell.nr_cell_id }}, // -> {{ peercell_ref }}
gnb_id_bits: {{ ncell.gnb_id_bits }},
gnb_id_bits: {{ ncell.gnb_id_bits }},
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
99688182
...
@@ -35,7 +35,9 @@ offline = true
...
@@ -35,7 +35,9 @@ offline = true
{%- set icell_kind='enb' %}
{%- set icell_kind='enb' %}
{%- import 'slaplte.jinja2' as slaplte with context %}
{%- import 'slaplte.jinja2' as slaplte with context %}
{%- import 'ru_libinstance.jinja2.cfg' as rulib with context %}
{%- import 'ru_libinstance.jinja2.cfg' as rulib with context %}
{%- set ipeer_dict = {} %}
{%- set ipeercell_dict = {} %}
{%- set ipeercell_dict = {} %}
{%- do slaplte.load_ipeer(ipeercell_dict) %}
{%- do slaplte.load_ipeercell(ipeercell_dict) %}
{%- do slaplte.load_ipeercell(ipeercell_dict) %}
{%- do slaplte.check_loaded_everything() %}
{%- do slaplte.check_loaded_everything() %}
...
@@ -320,6 +322,7 @@ output = ${directory:etc}/enb.cfg
...
@@ -320,6 +322,7 @@ output = ${directory:etc}/enb.cfg
extra-context =
extra-context =
json iru_dict {{ rulib.iru_dict | tojson }}
json iru_dict {{ rulib.iru_dict | tojson }}
json icell_dict {{ rulib.icell_dict | tojson }}
json icell_dict {{ rulib.icell_dict | tojson }}
json ipeer_dict {{ ipeer_dict | tojson }}
json ipeercell_dict {{ ipeercell_dict | tojson }}
json ipeercell_dict {{ ipeercell_dict | tojson }}
import json_module json
import json_module json
import-list =
import-list =
...
...
software/ors-amarisoft/k/krequest-cb5.enb+
View file @
99688182
...
@@ -83,6 +83,7 @@ iru2 = iENB(eref('RU2'), RU2)
...
@@ -83,6 +83,7 @@ iru2 = iENB(eref('RU2'), RU2)
# Cells
# Cells
CELL1 = {
CELL1 = {
'cell_type': 'lte',
'cell_type': 'lte',
'cell_kind': 'enb',
'rf_mode': 'fdd',
'rf_mode': 'fdd',
'bandwidth': '20 MHz',
'bandwidth': '20 MHz',
'dl_earfcn': 100, # 2120 @ B1
'dl_earfcn': 100, # 2120 @ B1
...
@@ -104,6 +105,7 @@ CELL2['ru']['ru_ref'] = eref('RU2')
...
@@ -104,6 +105,7 @@ CELL2['ru']['ru_ref'] = eref('RU2')
if 0: # to test 5G
if 0: # to test 5G
CELL2 = {
CELL2 = {
'cell_type': 'nr',
'cell_type': 'nr',
'cell_kind': 'enb',
'rf_mode': 'fdd',
'rf_mode': 'fdd',
'bandwidth': 5,
'bandwidth': 5,
'dl_nr_arfcn': 537200, # 2686 MHz
'dl_nr_arfcn': 537200, # 2686 MHz
...
@@ -135,7 +137,8 @@ uRU['cpri_link']['sfp_port'] = 3
...
@@ -135,7 +137,8 @@ uRU['cpri_link']['sfp_port'] = 3
uRU['mac_addr'] = '90:A9:F7:C0:00:04'
uRU['mac_addr'] = '90:A9:F7:C0:00:04'
uCELL = {
uCELL = {
'ue_cell_type': 'lte',
'cell_type': 'lte',
'cell_kind': 'ue',
'rf_mode': 'fdd',
'rf_mode': 'fdd',
'dl_earfcn': 300,
'dl_earfcn': 300,
...
...
software/ors-amarisoft/k/krequest-ors.enb.old
View file @
99688182
...
@@ -64,6 +64,7 @@ RU1 = {
...
@@ -64,6 +64,7 @@ RU1 = {
CELL1_a = {
CELL1_a = {
'cell_type': 'lte',
'cell_type': 'lte',
'cell_kind': 'enb',
'rf_mode': 'tdd',
'rf_mode': 'tdd',
'bandwidth': '5 MHz',
'bandwidth': '5 MHz',
'dl_earfcn': 38050, # 2600 MHz
'dl_earfcn': 38050, # 2600 MHz
...
@@ -77,6 +78,7 @@ iCELL1_a = kslap.iSHARED(enb1, 'CELL1_a', CELL1_a)
...
@@ -77,6 +78,7 @@ iCELL1_a = kslap.iSHARED(enb1, 'CELL1_a', CELL1_a)
CELL1_b = {
CELL1_b = {
'cell_type': 'lte',
'cell_type': 'lte',
'cell_kind': 'enb',
'rf_mode': 'tdd',
'rf_mode': 'tdd',
'bandwidth': '5 MHz',
'bandwidth': '5 MHz',
'dl_earfcn': 38100, # 2605 MHz
'dl_earfcn': 38100, # 2605 MHz
...
@@ -121,6 +123,7 @@ iRU2_b = kslap.iSHARED(enb1, 'RU2_b', RU2_b)
...
@@ -121,6 +123,7 @@ iRU2_b = kslap.iSHARED(enb1, 'RU2_b', RU2_b)
kslap.iSHARED(enb1, 'CELL2_a', {
kslap.iSHARED(enb1, 'CELL2_a', {
'cell_type': 'lte',
'cell_type': 'lte',
'cell_kind': 'enb',
'rf_mode': 'fdd',
'rf_mode': 'fdd',
'bandwidth': '5 MHz',
'bandwidth': '5 MHz',
'dl_earfcn': 3350, # 2680 MHz
'dl_earfcn': 3350, # 2680 MHz
...
@@ -134,6 +137,7 @@ kslap.iSHARED(enb1, 'CELL2_a', {
...
@@ -134,6 +137,7 @@ kslap.iSHARED(enb1, 'CELL2_a', {
kslap.iSHARED(enb1, 'CELL2_b', {
kslap.iSHARED(enb1, 'CELL2_b', {
'cell_type': 'nr',
'cell_type': 'nr',
'cell_kind': 'enb',
'rf_mode': 'fdd',
'rf_mode': 'fdd',
'bandwidth': 5,
'bandwidth': 5,
'dl_nr_arfcn': 537200, # 2686 MHz
'dl_nr_arfcn': 537200, # 2686 MHz
...
...
software/ors-amarisoft/slaplte.jinja2
View file @
99688182
...
@@ -198,8 +198,7 @@
...
@@ -198,8 +198,7 @@
{%- endfor %}
{%- endfor %}
{%- endif %}
{%- endif %}
{%- do iru_dict.update({ref: iru}) %}
{%- do iru_dict.update({ref: iru}) %}
{%- elif (icell_kind == 'enb' and 'cell_type' in _) or
{%- elif 'cell_type' in _ and _.get('cell_kind') == icell_kind %}
(icell_kind == 'ue' and 'ue_cell_type' in _) %}
{%- set icell = ishared %}
{%- set icell = ishared %}
{%- if icell_kind == 'enb' %}
{%- if icell_kind == 'enb' %}
{%- for k, v in defaults['cell/%s' % _.cell_type].items() %}
{%- for k, v in defaults['cell/%s' % _.cell_type].items() %}
...
@@ -208,13 +207,10 @@
...
@@ -208,13 +207,10 @@
{%- for k, v in defaults['cell/%s/%s' % (_.cell_type, _.rf_mode)].items() %}
{%- for k, v in defaults['cell/%s/%s' % (_.cell_type, _.rf_mode)].items() %}
{%- do _.setdefault(k, v) %}
{%- do _.setdefault(k, v) %}
{%- endfor %}
{%- endfor %}
{%- set xcell_type = _.cell_type %}
{%- else %}
{%- set xcell_type = _.ue_cell_type %}
{%- endif %}
{%- endif %}
{%- if
x
cell_type == 'lte' %}
{%- if
_.
cell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- elif
x
cell_type == 'nr' %}
{%- elif
_.
cell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('subcarrier_spacing', 30 if _.rf_mode == 'tdd' else 15) %} {# XXX just leave at 30 ? #}
{%- do _.setdefault('subcarrier_spacing', 30 if _.rf_mode == 'tdd' else 15) %} {# XXX just leave at 30 ? #}
{%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
...
@@ -330,14 +326,14 @@
...
@@ -330,14 +326,14 @@
{%- for ishared in qshared_instance_list %}
{%- for ishared in qshared_instance_list %}
{%- set ref = J(jref_of_shared(ishared)) %}
{%- set ref = J(jref_of_shared(ishared)) %}
{%- set _ = ishared['_'] %}
{%- set _ = ishared['_'] %}
{%- if '
peer_cell_type' in _
%}
{%- if '
cell_type' in _ and _.get('cell_kind') == 'enb_peer'
%}
{%- set ipeercell = ishared %}
{%- set ipeercell = ishared %}
{%- for k, v in defaults['peercell/' + _.
peer_
cell_type].items() %}
{%- for k, v in defaults['peercell/' + _.cell_type].items() %}
{%- do _.setdefault(k, v) %}
{%- do _.setdefault(k, v) %}
{%- endfor %}
{%- endfor %}
{%- if _.
peer_
cell_type == 'lte' %}
{%- if _.cell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- elif _.
peer_
cell_type == 'nr' %}
{%- elif _.cell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('subcarrier_spacing',
{%- do _.setdefault('subcarrier_spacing',
30 if nrarfcn_module.get_duplex_mode(_.nr_band).lower() == 'tdd' else
30 if nrarfcn_module.get_duplex_mode(_.nr_band).lower() == 'tdd' else
...
...
software/ors-amarisoft/slapos-render-config.py
View file @
99688182
...
@@ -93,6 +93,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
...
@@ -93,6 +93,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
ienb
.
ishared
(
'CELL_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38050
,
# 2600 MHz
'dl_earfcn'
:
38050
,
# 2600 MHz
...
@@ -103,6 +104,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
...
@@ -103,6 +104,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
ienb
.
ishared
(
'CELL_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38100
,
# 2605 MHz
'dl_earfcn'
:
38100
,
# 2605 MHz
...
@@ -116,6 +118,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
...
@@ -116,6 +118,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
ienb
.
ishared
(
'CELL_c'
,
{
ienb
.
ishared
(
'CELL_c'
,
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
10
,
'bandwidth'
:
10
,
'dl_nr_arfcn'
:
523020
,
# 2615.1 MHz
'dl_nr_arfcn'
:
523020
,
# 2615.1 MHz
...
@@ -153,6 +156,7 @@ def iRU2_SDR_tLTE_tNR(ienb):
...
@@ -153,6 +156,7 @@ def iRU2_SDR_tLTE_tNR(ienb):
ienb
.
ishared
(
'CELL_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38050
,
# 2600 MHz
'dl_earfcn'
:
38050
,
# 2600 MHz
...
@@ -166,6 +170,7 @@ def iRU2_SDR_tLTE_tNR(ienb):
...
@@ -166,6 +170,7 @@ def iRU2_SDR_tLTE_tNR(ienb):
ienb
.
ishared
(
'CELL_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
10
,
'bandwidth'
:
10
,
'dl_nr_arfcn'
:
523020
,
# 2615.1 MHz
'dl_nr_arfcn'
:
523020
,
# 2615.1 MHz
...
@@ -211,6 +216,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
...
@@ -211,6 +216,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
ienb
.
ishared
(
'CELL_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
3350
,
# 2680 MHz
'dl_earfcn'
:
3350
,
# 2680 MHz
...
@@ -224,6 +230,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
...
@@ -224,6 +230,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
ienb
.
ishared
(
'CELL_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
5
,
'bandwidth'
:
5
,
'dl_nr_arfcn'
:
537200
,
# 2686 MHz
'dl_nr_arfcn'
:
537200
,
# 2686 MHz
...
@@ -253,6 +260,7 @@ def iRU1_SDR1_fLTE2(ienb):
...
@@ -253,6 +260,7 @@ def iRU1_SDR1_fLTE2(ienb):
ienb
.
ishared
(
'CELL_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
3350
,
# 2680 MHz (Band 7)
'dl_earfcn'
:
3350
,
# 2680 MHz (Band 7)
...
@@ -263,6 +271,7 @@ def iRU1_SDR1_fLTE2(ienb):
...
@@ -263,6 +271,7 @@ def iRU1_SDR1_fLTE2(ienb):
ienb
.
ishared
(
'CELL_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
3050
,
# 2650 MHz (Band 7)
'dl_earfcn'
:
3050
,
# 2650 MHz (Band 7)
...
@@ -304,6 +313,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
...
@@ -304,6 +313,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
ienb
.
ishared
(
'RU_0002'
,
RU_0002
)
ienb
.
ishared
(
'RU_0002'
,
RU_0002
)
ienb
.
ishared
(
'CELL2'
,
{
ienb
.
ishared
(
'CELL2'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'20 MHz'
,
'bandwidth'
:
'20 MHz'
,
'dl_earfcn'
:
100
,
# 2120 MHz @ B1
'dl_earfcn'
:
100
,
# 2120 MHz @ B1
...
@@ -319,6 +329,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
...
@@ -319,6 +329,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
ienb
.
ishared
(
'RU_0004'
,
RU_0004
)
ienb
.
ishared
(
'RU_0004'
,
RU_0004
)
ienb
.
ishared
(
'CELL4'
,
{
ienb
.
ishared
(
'CELL4'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'20 MHz'
,
'bandwidth'
:
'20 MHz'
,
'dl_earfcn'
:
500
,
# 2160 MHz @ B1
'dl_earfcn'
:
500
,
# 2160 MHz @ B1
...
@@ -341,7 +352,8 @@ def do_enb():
...
@@ -341,7 +352,8 @@ def do_enb():
# add 2 peer cells
# add 2 peer cells
if
1
:
if
1
:
ienb
.
ishared
(
'PEER1'
,
{
ienb
.
ishared
(
'PEER1'
,
{
'peer_cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb_peer'
,
'e_cell_id'
:
'0x12345'
,
'e_cell_id'
:
'0x12345'
,
'pci'
:
35
,
'pci'
:
35
,
'dl_earfcn'
:
700
,
'dl_earfcn'
:
700
,
...
@@ -349,7 +361,8 @@ def do_enb():
...
@@ -349,7 +361,8 @@ def do_enb():
'tac'
:
123
,
'tac'
:
123
,
})
})
ienb
.
ishared
(
'PEER2'
,
{
ienb
.
ishared
(
'PEER2'
,
{
'peer_cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'cell_kind'
:
'enb_peer'
,
'nr_cell_id'
:
'0x77712'
,
'nr_cell_id'
:
'0x77712'
,
'gnb_id_bits'
:
22
,
'gnb_id_bits'
:
22
,
'dl_nr_arfcn'
:
520000
,
'dl_nr_arfcn'
:
520000
,
...
@@ -394,10 +407,9 @@ def do_enb():
...
@@ -394,10 +407,9 @@ def do_enb():
ishared
[
'_'
]
=
_
ishared
[
'_'
]
=
_
if
'ru_type'
in
_
:
if
'ru_type'
in
_
:
iru_dict
[
ref
]
=
ishared
iru_dict
[
ref
]
=
ishared
elif
'cell_type'
in
_
:
elif
'cell_type'
in
_
and
_
.
get
(
'cell_kind'
)
in
{
'enb'
,
'enb_peer'
}:
icell_dict
[
ref
]
=
ishared
idict
=
{
'enb'
:
icell_dict
,
'enb_peer'
:
ipeercell_dict
}
[
_
[
'cell_kind'
]]
elif
'peer_cell_type'
in
_
:
idict
[
ref
]
=
ishared
ipeercell_dict
[
ref
]
=
ishared
else
:
else
:
raise
AssertionError
(
'enb: unknown shared instance %r'
%
(
ishared
,))
raise
AssertionError
(
'enb: unknown shared instance %r'
%
(
ishared
,))
...
@@ -435,7 +447,8 @@ def do_enb():
...
@@ -435,7 +447,8 @@ def do_enb():
def
do_ue
():
def
do_ue
():
iue
=
Instance
(
'ue'
)
iue
=
Instance
(
'ue'
)
iue
.
ishared
(
'UCELL1'
,
{
iue
.
ishared
(
'UCELL1'
,
{
'ue_cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'cell_kind'
:
'ue'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38050
,
# 2600 MHz
'dl_earfcn'
:
38050
,
# 2600 MHz
...
@@ -450,7 +463,8 @@ def do_ue():
...
@@ -450,7 +463,8 @@ def do_ue():
}
}
})
})
iue
.
ishared
(
'UCELL2'
,
{
iue
.
ishared
(
'UCELL2'
,
{
'ue_cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'cell_kind'
:
'ue'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
5
,
'bandwidth'
:
5
,
'dl_nr_arfcn'
:
537200
,
# 2686 MHz
'dl_nr_arfcn'
:
537200
,
# 2686 MHz
...
...
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