sysmocom: Introduce suite to test emergency calls
Change-Id: I2e851c94311ded0abd4ff072b8cc72316d972750
diff --git a/src/osmo_gsm_tester/obj/bts.py b/src/osmo_gsm_tester/obj/bts.py
index 56e5aaa..5b43642 100644
--- a/src/osmo_gsm_tester/obj/bts.py
+++ b/src/osmo_gsm_tester/obj/bts.py
@@ -19,7 +19,10 @@
import copy
from abc import ABCMeta, abstractmethod
-from ..core import log, config, schema
+from ..core import log
+from ..core import config
+from ..core import schema
+from ..core import util
def on_register_schemas():
resource_schema = {
@@ -31,6 +34,7 @@
'ciphers[]': schema.CIPHER,
'channel_allocator': schema.CHAN_ALLOCATOR,
'gprs_mode': schema.GPRS_MODE,
+ 'emergency_calls_allowed': schema.BOOL_STR,
'num_trx': schema.UINT,
'max_trx': schema.UINT,
'trx_list[].addr': schema.IPV4,
@@ -132,6 +136,8 @@
if self.bvci is not None:
config.overlay(values, { 'bvci': self.bvci })
+ config.overlay(values, { 'emergency_calls_allowed': util.str2bool(values.get('emergency_calls_allowed', 'false')) } )
+
conf = copy.deepcopy(self.conf)
trx_list = conf.get('trx_list')
if trx_list and len(trx_list) != self.num_trx():