aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-07-09 14:22:02 +0200
committerpespin <pespin@sysmocom.de>2020-07-09 13:43:00 +0000
commit1dddb7b264bdeb24ddf338b3b93d3dc6a657968b (patch)
tree1c0ab00f69a58b0516d02fd9ad206554b6f84b1b /src/osmo_gsm_tester
parentb92e2d1c9932ebcdd0f2b3f2193d86a02c617815 (diff)
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
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/templates/srsepc.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
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