aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Yanitskiy <fixeria@osmocom.org>2024-08-07 16:14:57 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2024-08-22 02:32:07 +0700
commit7c06eea5b2a5c35898f43de50888c890816c9aa3 (patch)
tree17691a5c35f69583d8c69c54717033a7f5182af4 /tests
parentd4693f652a3b045c09a4bfb17f344da758d4c924 (diff)
subscriber-create-on-demand: add mode for MSISDN=IMSIHEADmaster
In may be desirable for some users to assign deterministic MSISDNs when subscriber-create-on-demand is enabled. This can be achieved by assigning MSISDN=IMSI. This commit adds a new mode for that. Change-Id: I3470492f5e46de7246d9a74e80c37f80f455d851
Diffstat (limited to 'tests')
-rw-r--r--tests/test_nodes.vty2
-rw-r--r--tests/test_subscr_create_on_demand.vty8
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty
index 02a5552..6875416 100644
--- a/tests/test_nodes.vty
+++ b/tests/test_nodes.vty
@@ -73,7 +73,7 @@ OsmoHLR(config-hlr)# list
reject-cause (not-found|no-proxy) (imsi-unknown|illegal-ms|plmn-not-allowed|la-not-allowed|roaming-not-allowed|no-suitable-cell-in-la|net-fail|congestion|auth-unacceptable|proto-error-unspec)
store-imei
no store-imei
- subscriber-create-on-demand (no-msisdn|<3-15>) (none|cs|ps|cs+ps)
+ subscriber-create-on-demand (no-msisdn|msisdn-from-imsi|<3-15>) (none|cs|ps|cs+ps)
no subscriber-create-on-demand
OsmoHLR(config-hlr)# gsup
diff --git a/tests/test_subscr_create_on_demand.vty b/tests/test_subscr_create_on_demand.vty
index fb587ae..76c6769 100644
--- a/tests/test_subscr_create_on_demand.vty
+++ b/tests/test_subscr_create_on_demand.vty
@@ -10,6 +10,14 @@ hlr
subscriber-create-on-demand no-msisdn none
...
+OsmoHLR(config-hlr)# subscriber-create-on-demand msisdn-from-imsi cs+ps
+OsmoHLR(config-hlr)# show running-config
+...
+hlr
+...
+ subscriber-create-on-demand msisdn-from-imsi cs+ps
+...
+
OsmoHLR(config-hlr)# subscriber-create-on-demand 3 none
OsmoHLR(config-hlr)# show running-config
...