summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/bts_octphy.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_octphy.py
parent96d6b6ce22983d9214177f3add2661a5f62a9523 (diff)
Use unique incrementing value for BTS LAC
Diffstat (limited to 'src/osmo_gsm_tester/bts_octphy.py')
-rw-r--r--src/osmo_gsm_tester/bts_octphy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/bts_octphy.py b/src/osmo_gsm_tester/bts_octphy.py
index ae2e249..eb1092c 100644
--- a/src/osmo_gsm_tester/bts_octphy.py
+++ b/src/osmo_gsm_tester/bts_octphy.py
@@ -30,6 +30,7 @@ class OsmoBtsOctphy(log.Origin):
env = None
pcu_sk_tmp_dir = None
values = None
+ lac = None
BIN_BTS_OCTPHY = 'osmo-bts-octphy'
@@ -158,6 +159,8 @@ class OsmoBtsOctphy(log.Origin):
def conf_for_bsc(self):
values = config.get_defaults('bsc_bts')
config.overlay(values, config.get_defaults('osmo_bts_octphy'))
+ 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
@@ -165,4 +168,7 @@ class OsmoBtsOctphy(log.Origin):
def set_bsc(self, bsc):
self.bsc = bsc
+ def set_lac(self, lac):
+ self.lac = lac
+
# vim: expandtab tabstop=4 shiftwidth=4