<p>srs_andre has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22599">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amarisoft_mme: use/expose count paramter from MS config for MME<br><br>the UEs count param, if specified, is mapped into the config<br>values of the EPC so it can be used for template rendering.<br><br>Since we only have one count parameter, its added to the first<br>subscriber. 1 is the default value and its used when no count<br>param is specified.<br><br>this allows to run the Amarisoft UE simulator with the Amarisoft EPC<br>without having to create subscriber entries for each simulated UE.<br><br>Change-Id: I29885791f716c204d0b6f18ba134885bae853b6f<br>---<br>M src/osmo_gsm_tester/obj/epc_amarisoft.py<br>M src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl<br>2 files changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/99/22599/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_gsm_tester/obj/epc_amarisoft.py b/src/osmo_gsm_tester/obj/epc_amarisoft.py</span><br><span>index 1291891..87015d3 100644</span><br><span>--- a/src/osmo_gsm_tester/obj/epc_amarisoft.py</span><br><span>+++ b/src/osmo_gsm_tester/obj/epc_amarisoft.py</span><br><span>@@ -150,6 +150,10 @@</span><br><span>         config.overlay(values, dict(epc=dict(log_filename=logfile,</span><br><span>                                              ifup_filename=ifupfile)))</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        # Retrieve and overlay UE count parameter to first subscriber</span><br><span style="color: hsl(120, 100%, 40%);">+        sub_count = self.testenv.suite().config().get('modem', None)</span><br><span style="color: hsl(120, 100%, 40%);">+        sub_count = sub_count['count'] if sub_count is not None and 'count' in sub_count else 1</span><br><span style="color: hsl(120, 100%, 40%);">+        self.subscriber_list[0]['count'] = sub_count</span><br><span>         config.overlay(values, dict(epc=dict(hss=dict(subscribers=self.subscriber_list))))</span><br><span> </span><br><span>         self.dbg('SRSEPC CONFIG:\n' + pprint.pformat(values))</span><br><span>diff --git a/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl</span><br><span>index 3c83bed..b2df9ca 100644</span><br><span>--- a/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl</span><br><span>+++ b/src/osmo_gsm_tester/templates/amarisoft_ltemme.cfg.tmpl</span><br><span>@@ -161,6 +161,7 @@</span><br><span>          with test SIM cards). They are distinguished with their</span><br><span>          IMEI. default = false. */</span><br><span>       multi_sim: false,</span><br><span style="color: hsl(120, 100%, 40%);">+      count: ${sub.count},</span><br><span>     },</span><br><span> %endfor</span><br><span>     /* Add new entries for each IMSI/K */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22599">change 22599</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22599"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I29885791f716c204d0b6f18ba134885bae853b6f </div>
<div style="display:none"> Gerrit-Change-Number: 22599 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>