Change in osmo-gsm-tester[master]: srsepc.conf.tmpl: zero-pad mnc and mcc in config

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/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Jul 9 13:43:01 UTC 2020


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

Change subject: srsepc.conf.tmpl: zero-pad mnc and mcc in config
......................................................................

srsepc.conf.tmpl: zero-pad mnc and mcc in config

srsEPC expect zero-padding MNC/MCC in config file. However,
001 and mcc will end up as 1 in the rendered template.
Therefore, they need to be formatted correctly.

Change-Id: Ie63cd1b15b961e493a6dcbd7e5a4fbabe0bb6f33
---
M src/osmo_gsm_tester/templates/srsepc.conf.tmpl
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/src/osmo_gsm_tester/templates/srsepc.conf.tmpl b/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
index f855127..830cd32 100644
--- a/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsepc.conf.tmpl
@@ -24,8 +24,8 @@
 mme_code = 0x1a
 mme_group = 0x0001
 tac = 0x0007
-mcc = ${epc.mcc}
-mnc = ${epc.mnc}
+mcc = ${'{0:03}'.format(int(epc.mcc))}
+mnc = ${'{0:02}'.format(int(epc.mnc))}
 mme_bind_addr = ${epc.run_addr}
 apn = srsapn
 dns_addr = 8.8.8.8

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19202
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: Ie63cd1b15b961e493a6dcbd7e5a4fbabe0bb6f33
Gerrit-Change-Number: 19202
Gerrit-PatchSet: 2
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200709/9c687553/attachment.htm>


More information about the gerrit-log mailing list