path: root/src/osmo_gsm_tester/
diff options
authorPau Espin Pedrol <>2017-08-22 11:17:43 +0200
committerPau Espin Pedrol <>2017-08-23 12:56:40 +0000
commit404e150c691bbdc9f03e95b14d123cebda4bca9c (patch)
tree57801dc8c44ee10c9fda8a8a3aab9644cd355046 /src/osmo_gsm_tester/
parent5df8dd2a2a7e41995ca13241cffaecf7cdf9b02e (diff)
bts_osmotrx: Support configuring bts addr, trx_remote_ip and launch_trx
We may want to support running a device which runs its own TRX (osmo-trx or different implementation). Furthermore, this TRX may be available in some specific hwardare rather than on the main unit. This makes it easy to configure OsmoBtsTrx to launch it's own osmo-trx or not. In case it is launched, all IPs are configured correctly to ensure connection can be established. Before this commit, osmo-trx was binding to Now we can support multiple osmo-trx being launched on the main unit. Change-Id: I825ed1fc0c3fe75d196db90c1508283fbd04acf8
Diffstat (limited to 'src/osmo_gsm_tester/')
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/ b/src/osmo_gsm_tester/
index d652aa7..4c9b9cd 100644
--- a/src/osmo_gsm_tester/
+++ b/src/osmo_gsm_tester/
@@ -20,7 +20,7 @@
import re
from . import log
-from .util import is_dict, is_list
+from .util import is_dict, is_list, str2bool
KEY_RE = re.compile('[a-zA-Z][a-zA-Z0-9_]*')
IPV4_RE = re.compile('([0-9]{1,3}.){3}[0-9]{1,3}')
@@ -63,21 +63,25 @@ def msisdn(val):
INT = 'int'
STR = 'str'
+BOOL_STR = 'bool_str'
BAND = 'band'
IPV4 = 'ipv4'
HWADDR = 'hwaddr'
IMSI = 'imsi'
KI = 'ki'
MSISDN = 'msisdn'
+TRX_REMOTE_IP = 'trx_remote_ip'
INT: int,
STR: str,
+ BOOL_STR: str2bool,
BAND: band,
IPV4: ipv4,
HWADDR: hwaddr,
IMSI: imsi,
KI: ki,
MSISDN: msisdn,
+ TRX_REMOTE_IP: ipv4,
def validate(config, schema):