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
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 @@
 
 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):