Change in osmo-gsm-tester[master]: epc_amarisoft: launch ltesim server when starting

srs_andre gerrit-no-reply at lists.osmocom.org
Fri Mar 12 12:12:59 UTC 2021


srs_andre has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/23342 )


Change subject: epc_amarisoft: launch ltesim server when starting
......................................................................

epc_amarisoft: launch ltesim server when starting

this allows to use the lteue to generate DL traffic. the
server listens on the default spgw address.

Change-Id: Iad081e57e2fd9d3cbc3e59e4f729a4721ad778c9
---
M src/osmo_gsm_tester/obj/epc_amarisoft.py
1 file changed, 14 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/42/23342/1

diff --git a/src/osmo_gsm_tester/obj/epc_amarisoft.py b/src/osmo_gsm_tester/obj/epc_amarisoft.py
index 3b184ae..d7e49d8 100644
--- a/src/osmo_gsm_tester/obj/epc_amarisoft.py
+++ b/src/osmo_gsm_tester/obj/epc_amarisoft.py
@@ -37,6 +37,7 @@
     CFGFILE = 'amarisoft_ltemme.cfg'
     LOGFILE = 'ltemme.log'
     IFUPFILE = 'mme-ifup'
+    LTESIM_BINFILE = 'ltesim_server'
 
     def __init__(self, testenv, run_node):
         super().__init__(testenv, run_node, 'amarisoftepc')
@@ -50,7 +51,7 @@
         self.remote_inst = None
         self.remote_config_file = None
         self.remote_log_file = None
-        self.remote_ifup_file =None
+        self.remote_ifup_file = None
         self._bin_prefix = None
         self.inst = None
         self.subscriber_list = []
@@ -81,6 +82,7 @@
             self.start_locally()
         else:
             self.start_remotely()
+            self.start_ltesim_remotely()
 
     def start_remotely(self):
         remote_binary = self.remote_inst.child('', AmarisoftEPC.BINFILE)
@@ -115,6 +117,17 @@
         self.testenv.remember_to_stop(self.process)
         self.process.launch()
 
+    def start_ltesim_remotely(self):
+        # Sleep for a moment to give MME time to start up create TUN device
+        import time
+        time.sleep(2)
+        remote_binary = self.remote_inst.child('', AmarisoftEPC.LTESIM_BINFILE)
+        args = (remote_binary, "-a " + self.tun_addr())
+        self.log('Launching ltesim_server')
+        self.ltesim_process = self.rem_host.RemoteProcess(AmarisoftEPC.LTESIM_BINFILE, args)
+        self.testenv.remember_to_stop(self.ltesim_process)
+        self.ltesim_process.launch()
+
     def configure(self):
         self.inst = util.Dir(os.path.abspath(self.bin_prefix()))
         if not self.inst.isfile('', AmarisoftEPC.BINFILE):

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/23342
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Iad081e57e2fd9d3cbc3e59e4f729a4721ad778c9
Gerrit-Change-Number: 23342
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210312/71db26a8/attachment.htm>


More information about the gerrit-log mailing list