aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gb
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-16 23:06:53 +0100
committerlynxis lazus <lynxis@fe80.eu>2021-02-19 10:41:50 +0000
commit7bb39e368d644e9d1029a210ea8a720674bd5185 (patch)
treee68e6989bda10b2de9704f3b7164b63735690e02 /tests/gb
parentb2de546a5ca2e6ee76d342e66eda39afe4c08bbe (diff)
gprs_ns2: ensure no duplicate UDP NSVC can be created
Diffstat (limited to 'tests/gb')
-rw-r--r--tests/gb/gprs_ns2_vty.vty20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/gb/gprs_ns2_vty.vty b/tests/gb/gprs_ns2_vty.vty
index a9698813..f0253fcf 100644
--- a/tests/gb/gprs_ns2_vty.vty
+++ b/tests/gb/gprs_ns2_vty.vty
@@ -61,3 +61,23 @@ UDP bind: 127.0.0.14:42999 DSCP: 0
NSVCI 00000: udp)[127.0.0.14]:42999<>[127.0.0.17]:9496
NSVCI 00000: udp)[127.0.0.14]:42999<>[127.0.0.16]:9496
NSVCI 00000: udp)[127.0.0.14]:42999<>[127.0.0.15]:9496
+OsmoNSdummy# configure terminal
+OsmoNSdummy(config)# ns
+OsmoNSdummy(config-ns)# nse 1234
+OsmoNSdummy(config-ns-nse)# nsvc udp abc 127.0.0.16 9496 signalling-weight 2 data-weight 2
+Specified NSVC is already present in this NSE.
+OsmoNSdummy(config-ns-nse)# exit
+OsmoNSdummy(config-ns)# nse 1235
+OsmoNSdummy(config-ns-nse)# nsvc udp abc 127.0.0.16 9496 signalling-weight 2 data-weight 2
+Specified NSVC is already present in another NSE01234.
+OsmoNSdummy(config-ns-nse)# exit
+OsmoNSdummy(config-ns)# nse 2342
+OsmoNSdummy(config-ns-nse)# ip-sns-bind abc
+OsmoNSdummy(config-ns-nse)# ip-sns-bind abc
+Failed to add ip-sns-bind abc already present
+OsmoNSdummy(config-ns-nse)# ip-sns-bind abc2
+Can not find the given bind 'abc2'
+OsmoNSdummy(config-ns-nse)# ip-sns-remote 127.0.0.1 22222
+OsmoNSdummy(config-ns-nse)# ip-sns-remote 127.0.0.1 22222
+Specified SNS endpoint already part of the NSE.
+OsmoNSdummy(config-ns-nse)# exit