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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/13442 ) Change subject: osmo-cn-latest: Use osmo-config-merge to configure the MSC ...................................................................... osmo-cn-latest: Use osmo-config-merge to configure the MSC Change-Id: I6ccebf041d6e4fd3f9e1c6d898e2787b7de9ccca --- M osmo-cn-latest/create_hlr.py R osmo-cn-latest/osmo-msc.cfg.base 2 files changed, 22 insertions(+), 6 deletions(-) Approvals: Daniel Willmann: Verified Harald Welte: Looks good to me, approved diff --git a/osmo-cn-latest/create_hlr.py b/osmo-cn-latest/create_hlr.py index b754af7..0a625a9 100755 --- a/osmo-cn-latest/create_hlr.py +++ b/osmo-cn-latest/create_hlr.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import os, sys import csv import sys import sqlite3 @@ -127,7 +128,22 @@ infilename = args[0] csvfields = ['name', 'iccid', 'mcc', 'mnc', 'imsi', 'extension', 'smsp', 'ki', 'opc', 'adm1'] - create_hlr_3g("hlr.db") + try: + create_hlr_3g("hlr.db") + except sqlite3.OperationalError: + print("hlr.db already exists, please remove!\n"); + sys.exit(1) + + msc = open("osmo-msc.cfg.patch", "w") + msc.write("network\n") + msc.write(" network country code %s\n" %(options.mcc)) + msc.write(" mobile network code %s\n" %(options.mnc)) + msc.write(" short name OsmoMSC-%s-%s\n" %(options.mcc, options.mnc)) + msc.write(" long name OsmoMSC-%s-%s\n" %(options.mcc, options.mnc)) + msc.close() + + os.system("osmo-config-merge osmo-msc.cfg.base osmo-msc.cfg.patch > osmo-msc.cfg") + inf = open(infilename, "r") outf = open("simcards.csv", "w") diff --git a/osmo-cn-latest/osmo-msc.cfg b/osmo-cn-latest/osmo-msc.cfg.base similarity index 77% rename from osmo-cn-latest/osmo-msc.cfg rename to osmo-cn-latest/osmo-msc.cfg.base index 8924d1e..042d847 100644 --- a/osmo-cn-latest/osmo-msc.cfg +++ b/osmo-cn-latest/osmo-msc.cfg.base @@ -2,11 +2,11 @@ ! OsmoMSC configuration saved from vty ! log file /data/osmo-msc.log - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 0 - logging level all everything + logging filter all 1 + logging color 1 + logging print category 1 + logging timestamp 0 + logging level all everything ! line vty no login -- To view, visit https://gerrit.osmocom.org/13442 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I6ccebf041d6e4fd3f9e1c6d898e2787b7de9ccca Gerrit-Change-Number: 13442 Gerrit-PatchSet: 1 Gerrit-Owner: Daniel Willmann <dwillmann at sysmocom.de> Gerrit-Reviewer: Daniel Willmann <dwillmann at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190329/00910a4a/attachment.htm>