Change in osmo-gsm-tester[master]: amarisoft_mme: use/expose count paramter from MS config for MME

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

srs_andre gerrit-no-reply at lists.osmocom.org
Mon Feb 1 14:14:31 UTC 2021


srs_andre has uploaded this change for review. ( 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(-)



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

diff --git a/src/osmo_gsm_tester/obj/epc_amarisoft.py b/src/osmo_gsm_tester/obj/epc_amarisoft.py
index 1291891..87015d3 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: 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/20210201/1da4f977/attachment.htm>


More information about the gerrit-log mailing list