aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/bts_sysmo.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-11-06 18:40:23 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-11-08 10:05:41 +0000
commit5e0c251c6c304c4706c07508fd2f8d418b66c3d9 (patch)
tree2b0302956d351e1e422c930c6a5be15fe3f62893 /src/osmo_gsm_tester/bts_sysmo.py
parent96d6b6ce22983d9214177f3add2661a5f62a9523 (diff)
Use unique incrementing value for BTS LAC
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 e8ac7c2..03dc97e 100644
--- a/src/osmo_gsm_tester/bts_sysmo.py
+++ b/src/osmo_gsm_tester/bts_sysmo.py
@@ -29,6 +29,7 @@ class SysmoBts(log.Origin):
remote_inst = None
remote_env = None
remote_dir = None
+ lac = None
REMOTE_DIR = '/osmo-gsm-tester'
BTS_SYSMO_BIN = 'osmo-bts-sysmo'
@@ -143,6 +144,8 @@ class SysmoBts(log.Origin):
def conf_for_bsc(self):
values = config.get_defaults('bsc_bts')
config.overlay(values, config.get_defaults('osmo_bts_sysmo'))
+ if self.lac is not None:
+ config.overlay(values, { 'location_area_code': self.lac })
config.overlay(values, self.conf)
self.dbg(conf=values)
return values
@@ -150,4 +153,7 @@ class SysmoBts(log.Origin):
def set_bsc(self, bsc):
self.bsc = bsc
+ def set_lac(self, lac):
+ self.lac = lac
+
# vim: expandtab tabstop=4 shiftwidth=4