aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/bts_sysmo.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-11-07 11:13:20 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-11-08 10:05:41 +0000
commit4ccce7c9639119fad1660fe2464636375d7c19ef (patch)
tree17bb63a575b66821eb60079583b00e34e7d51f75 /src/osmo_gsm_tester/bts_sysmo.py
parent5e0c251c6c304c4706c07508fd2f8d418b66c3d9 (diff)
Use unique incrementing value for BTS CellId
Diffstat (limited to 'src/osmo_gsm_tester/bts_sysmo.py')
-rw-r--r--src/osmo_gsm_tester/bts_sysmo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/bts_sysmo.py b/src/osmo_gsm_tester/bts_sysmo.py
index 03dc97e..fc546ae 100644
--- a/src/osmo_gsm_tester/bts_sysmo.py
+++ b/src/osmo_gsm_tester/bts_sysmo.py
@@ -30,6 +30,7 @@ class SysmoBts(log.Origin):
remote_env = None
remote_dir = None
lac = None
+ cellid = None
REMOTE_DIR = '/osmo-gsm-tester'
BTS_SYSMO_BIN = 'osmo-bts-sysmo'
@@ -146,6 +147,8 @@ class SysmoBts(log.Origin):
config.overlay(values, config.get_defaults('osmo_bts_sysmo'))
if self.lac is not None:
config.overlay(values, { 'location_area_code': self.lac })
+ if self.cellid is not None:
+ config.overlay(values, { 'cell_identity': self.cellid })
config.overlay(values, self.conf)
self.dbg(conf=values)
return values
@@ -156,4 +159,7 @@ class SysmoBts(log.Origin):
def set_lac(self, lac):
self.lac = lac
+ def set_cellid(self, cellid):
+ self.cellid = cellid
+
# vim: expandtab tabstop=4 shiftwidth=4