pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22599 )

Change subject: amarisoft_mme: use/expose count paramter from MS config for MME
......................................................................

amarisoft_mme: use/expose count paramter from MS config for MME

the UEs count param, if specified, is mapped into the config
values of the EPC so it can be used for template rendering.

Since we only have one count parameter, its added to the first
subscriber. 1 is the default value and its used when no count
param is specified.

this allows to run the Amarisoft UE simulator with the Amarisoft EPC
without having to create subscriber entries for each simulated UE.

Change-Id: I29885791f716c204d0b6f18ba134885bae853b6f
---
M src/osmo_gsm_tester/obj/epc_amarisoft.py
M src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl
2 files changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/osmo_gsm_tester/obj/epc_amarisoft.py 
b/src/osmo_gsm_tester/obj/epc_amarisoft.py
index 4c3bf07..3b184ae 100644
--- a/src/osmo_gsm_tester/obj/epc_amarisoft.py
+++ b/src/osmo_gsm_tester/obj/epc_amarisoft.py
@@ -150,6 +150,10 @@
         config.overlay(values, dict(epc=dict(log_filename=logfile,
                                              ifup_filename=ifupfile)))

+        # Retrieve and overlay UE count parameter to first subscriber
+        sub_count = self.testenv.suite().config().get('modem', None)
+        sub_count = sub_count['count'] if sub_count is not None and 'count' in 
sub_count else 1
+        self.subscriber_list[0]['count'] = sub_count
         config.overlay(values, 
dict(epc=dict(hss=dict(subscribers=self.subscriber_list))))

         self.dbg('SRSEPC CONFIG:\n' + pprint.pformat(values))
diff --git a/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl 
b/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl
index 3c83bed..b2df9ca 100644
--- a/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl
@@ -161,6 +161,7 @@
          with test SIM cards). They are distinguished with their
          IMEI. default = false. */
       multi_sim: false,
+      count: ${sub.count},
     },
 %endfor
     /* Add new entries for each IMSI/K */

--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22599
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: I29885791f716c204d0b6f18ba134885bae853b6f
Gerrit-Change-Number: 22599
Gerrit-PatchSet: 6
Gerrit-Owner: srs_andre <an...@softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to