Commit 539af4fd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0351d5e0
...@@ -20,7 +20,7 @@ md5sum = f7c9582099537c507b2a25e537b17716 ...@@ -20,7 +20,7 @@ md5sum = f7c9582099537c507b2a25e537b17716
[template-ors] [template-ors]
filename = instance-ors.cfg filename = instance-ors.cfg
md5sum = 8bd6d5390f33cf1d56502b49cf9da52f md5sum = f5c76c3443b75569eb18503dce38e783
[slaplte.jinja2] [slaplte.jinja2]
_update_hash_filename_ = slaplte.jinja2 _update_hash_filename_ = slaplte.jinja2
......
...@@ -39,8 +39,7 @@ ...@@ -39,8 +39,7 @@
"cell_id": { "cell_id": {
"title": "Cell ID", "title": "Cell ID",
"description": "Cell ID", "description": "Cell ID",
"type": "string", "type": "string"
"default": "0x01"
}, },
"root_sequence_index": { "root_sequence_index": {
"title": "Root Sequence Index", "title": "Root Sequence Index",
......
...@@ -60,6 +60,7 @@ class TestUELTEParameters(ORSTestCase): # XXX adjust ...@@ -60,6 +60,7 @@ class TestUELTEParameters(ORSTestCase): # XXX adjust
self.assertEqual(conf['tx_gain'], param_dict['tx_gain']) self.assertEqual(conf['tx_gain'], param_dict['tx_gain'])
self.assertEqual(conf['rx_gain'], param_dict['rx_gain']) self.assertEqual(conf['rx_gain'], param_dict['rx_gain'])
1/0 # XXX self.assertEqual(cell['n_rb_dl'], 50)
with open(conf_file, 'r') as f: with open(conf_file, 'r') as f:
for l in f: for l in f:
if l.startswith('#define N_RB_DL'): if l.startswith('#define N_RB_DL'):
......
...@@ -166,34 +166,28 @@ def test_enb_conf(self): ...@@ -166,34 +166,28 @@ def test_enb_conf(self):
self.assertEqual(cell['inactivity_timer'], enb_param_dict['inactivity_timer']) self.assertEqual(cell['inactivity_timer'], enb_param_dict['inactivity_timer'])
self.assertEqual(cell['uldl_config'], 6) self.assertEqual(cell['uldl_config'], 6)
self.assertEqual(cell['dl_earfcn'], enb_param_dict['dl_earfcn']) self.assertEqual(cell['dl_earfcn'], enb_param_dict['dl_earfcn'])
# XXX + ul_earfcn ? self.assertEqual(cell['n_rb_dl'], 50)
self.assertEqual(conf['enb_id'], int(enb_param_dict['enb_id'], 16)) self.assertEqual(conf['enb_id'], int(enb_param_dict['enb_id'], 16))
self.assertEqual(conf['cell_list'][0]['n_id_cell'], enb_param_dict['pci']) self.assertEqual(cell['n_id_cell'], enb_param_dict['pci'])
self.assertEqual(conf['cell_list'][0]['tac'], int(enb_param_dict['tac'], 16)) self.assertEqual(cell['tac'], int(enb_param_dict['tac'], 16))
self.assertEqual(conf['cell_list'][0]['root_sequence_index'], int(enb_param_dict['root_sequence_index'])) self.assertEqual(cell['root_sequence_index'], int(enb_param_dict['root_sequence_index']))
# self.assertEqual(conf['cell_list'][0]['cell_id'], 0) XXX reenable + -> 1 + remove defaults from g self.assertEqual(cell['cell_id'], 1)
for p in conf['cell_default']['plmn_list']: for p in conf['cell_default']['plmn_list']:
for n in "plmn attach_without_pdn reserved".split(): for n in "plmn attach_without_pdn reserved".split():
self.assertEqual(p[n], enb_param_dict['plmn_list'][p['plmn']][n]) self.assertEqual(p[n], enb_param_dict['plmn_list'][p['plmn']][n])
for p in conf['mme_list']: for p in conf['mme_list']:
self.assertEqual(p['mme_addr'], enb_param_dict['mme_list'][p['mme_addr']]['mme_addr']) self.assertEqual(p['mme_addr'], enb_param_dict['mme_list'][p['mme_addr']]['mme_addr'])
for p in conf['cell_list'][0]['ncell_list']: for p in cell['ncell_list']:
for k in enb_param_dict['ncell_list']: for k in enb_param_dict['ncell_list']:
if p['dl_earfcn'] == gnb_param_dict1['ncell_list'][k]['dl_earfcn']: if p['dl_earfcn'] == gnb_param_dict1['ncell_list'][k]['dl_earfcn']:
break break
conf_ncell = enb_param_dict['ncell_list'][k] conf_ncell = enb_param_dict['ncell_list'][k]
self.assertEqual(p['dl_earfcn'], conf_ncell['dl_earfcn']) self.assertEqual(p['dl_earfcn'], conf_ncell['dl_earfcn'])
# XXX + ul_earfcn
self.assertEqual(p['n_id_cell'], conf_ncell['pci']) self.assertEqual(p['n_id_cell'], conf_ncell['pci'])
self.assertEqual(p['cell_id'], int(conf_ncell['cell_id'], 16)) self.assertEqual(p['cell_id'], int(conf_ncell['cell_id'], 16))
self.assertEqual(p['tac'], conf_ncell['tac']) self.assertEqual(p['tac'], conf_ncell['tac'])
with open(conf_file, 'r') as f:
for l in f:
if l.startswith('#define N_RB_DL'):
self.assertIn('50', l)
def test_gnb_conf1(self): def test_gnb_conf1(self):
conf_file = glob.glob(os.path.join( conf_file = glob.glob(os.path.join(
...@@ -237,6 +231,7 @@ def test_gnb_conf1(self): ...@@ -237,6 +231,7 @@ def test_gnb_conf1(self):
self.assertEqual(int(tdd_config['ul_slots']), 1) self.assertEqual(int(tdd_config['ul_slots']), 1)
self.assertEqual(int(tdd_config['ul_symbols']), 2) self.assertEqual(int(tdd_config['ul_symbols']), 2)
1/0 # XXX
with open(conf_file, 'r') as f: with open(conf_file, 'r') as f:
for l in f: for l in f:
if l.startswith('#define NR_BANDWIDTH'): if l.startswith('#define NR_BANDWIDTH'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment