From 82feeff1c504dbcd2cd516848a961206a74aca02 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 Dec 2018 14:34:09 +0000 Subject: 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 --- src/osmo_gsm_tester/templates/osmo-mobile.cfg.tmpl | 2 ++ src/osmo_ms_driver/starter.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3