summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2018-12-16 14:34:09 +0000
committerHolger Freyther <holger@freyther.de>2018-12-30 12:31:29 +0000
commit82feeff1c504dbcd2cd516848a961206a74aca02 (patch)
tree0b94a200473f60947605b8b9b822b676c9deb78f
parent4db8bb68c11a320bafc70d751f9ea6a3f1bbd1c4 (diff)
mobile: Switch from removed cli option to vty port
Bind the mobile's to a random (chosen by the kernel) VTY port. The CLI option was removed and I added a new VTY command to be able to specify the port in addition to the address. Change-Id: Ie40a2ba156ba5674d37a15eb30e5b2527e75fbe7
-rw-r--r--src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl2
-rw-r--r--src/osmo_ms_driver/starter.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl b/src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl
index 395d6f4..0a2cd6d 100644
--- a/src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl
@@ -1,3 +1,5 @@
+line vty
+ bind 127.0.0.1 0
no gps enable
no hide-default
ms ${test.ms_number}
diff --git a/src/osmo_ms_driver/starter.py b/src/osmo_ms_driver/starter.py
index bf7727f..dd3aac5 100644
--- a/src/osmo_ms_driver/starter.py
+++ b/src/osmo_ms_driver/starter.py
@@ -121,7 +121,7 @@ class OsmoMobile(Launcher):
self.log("Starting mobile")
# Let the kernel pick an unused port for the VTY.
- args = [self._binary, "-c", mob_filename, "--vty-port=0"]
+ args = [self._binary, "-c", mob_filename]
self._omob_proc = process.Process(self.name(), self._tmp_dir,
args, env=self._env)
if suite_run: