From 404e150c691bbdc9f03e95b14d123cebda4bca9c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 22 Aug 2017 11:17:43 +0200 Subject: 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 127.0.0.1. Now we can support multiple osmo-trx being launched on the main unit. Change-Id: I825ed1fc0c3fe75d196db90c1508283fbd04acf8 --- src/osmo_gsm_tester/schema.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/osmo_gsm_tester/schema.py') diff --git a/src/osmo_gsm_tester/schema.py b/src/osmo_gsm_tester/schema.py index d652aa7..4c9b9cd 100644 --- a/src/osmo_gsm_tester/schema.py +++ b/src/osmo_gsm_tester/schema.py @@ -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' SCHEMA_TYPES = { 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): -- cgit v1.2.3