diff options
author | Oliver Smith <osmith@sysmocom.de> | 2019-03-04 15:10:44 +0100 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-19 14:42:46 +0700 |
commit | c7f1787c187e12355bbbe029a38cddaebb2b00e8 (patch) | |
tree | fc4300aa90a3136391ef26dd4cf08ba4f13a212b /tests | |
parent | c13599dc696fcab64219eba99afd0a2da9d0eec5 (diff) |
Create subscribers on demand
Add a new vty option and allow to optionally generate a random msisdn,
as well as setting the default NAM:
subscriber-create-on-demand (no-msisdn|<3-15>) (none|cs|ps|both)
Thanks to Vadim for the random MSISDN patch [1], which was squashed into
this one.
[1] Change-Id: I475c71f9902950fa7498855a616e1ec231fad6ac
Depends on: Idc74f4d94ad44b9fc1b6d43178f5f33d551ebfb1 (libosmocore)
Change-Id: I0c9fe93f5c24b5e9fefb513c4d049fb7ebd47ecd
Related: OS#2542
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_nodes.vty | 2 | ||||
-rw-r--r-- | tests/test_subscr_create_on_demand.vty | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty index a4e53db..bf2afaf 100644 --- a/tests/test_nodes.vty +++ b/tests/test_nodes.vty @@ -86,6 +86,8 @@ OsmoHLR(config-hlr)# list ncss-guard-timeout <0-255> store-imei no store-imei + subscriber-create-on-demand (no-msisdn|<3-15>) (none|cs|ps|cs+ps) + no subscriber-create-on-demand OsmoHLR(config-hlr)# gsup OsmoHLR(config-hlr-gsup)# list diff --git a/tests/test_subscr_create_on_demand.vty b/tests/test_subscr_create_on_demand.vty new file mode 100644 index 0000000..fb587ae --- /dev/null +++ b/tests/test_subscr_create_on_demand.vty @@ -0,0 +1,43 @@ +OsmoHLR> enable +OsmoHLR# configure terminal +OsmoHLR(config)# hlr + +OsmoHLR(config-hlr)# subscriber-create-on-demand no-msisdn none +OsmoHLR(config-hlr)# show running-config +... +hlr +... + subscriber-create-on-demand no-msisdn none +... + +OsmoHLR(config-hlr)# subscriber-create-on-demand 3 none +OsmoHLR(config-hlr)# show running-config +... +hlr +... + subscriber-create-on-demand 3 none +... + +OsmoHLR(config-hlr)# subscriber-create-on-demand 4 cs +OsmoHLR(config-hlr)# show running-config +... +hlr +... + subscriber-create-on-demand 4 cs +... + +OsmoHLR(config-hlr)# subscriber-create-on-demand 5 ps +OsmoHLR(config-hlr)# show running-config +... +hlr +... + subscriber-create-on-demand 5 ps +... + +OsmoHLR(config-hlr)# subscriber-create-on-demand 6 cs+ps +OsmoHLR(config-hlr)# show running-config +... +hlr +... + subscriber-create-on-demand 6 cs+ps +... |