summaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gb/gprs_ns_vty.c')
-rw-r--r--src/gb/gprs_ns_vty.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gb/gprs_ns_vty.c b/src/gb/gprs_ns_vty.c
index 15247639..53c71a9a 100644
--- a/src/gb/gprs_ns_vty.c
+++ b/src/gb/gprs_ns_vty.c
@@ -46,6 +46,7 @@
#include <osmocom/vty/misc.h>
#include "common_vty.h"
+#include "gb_internal.h"
static struct gprs_ns_inst *vty_nsi = NULL;
@@ -59,6 +60,7 @@ static const struct value_string gprs_ns_timer_strs[] = {
{ 4, "tns-test" },
{ 5, "tns-alive" },
{ 6, "tns-alive-retries" },
+ { 7, "tsns-prov" },
{ 0, NULL }
};
@@ -208,6 +210,8 @@ static void dump_ns(struct vty *vty, const struct gprs_ns_inst *nsi, bool stats,
continue;
dump_nse(vty, nsvc, stats, persistent_only);
}
+
+ gprs_sns_dump_vty(vty, nsi, stats);
}
DEFUN(show_ns, show_ns_cmd, "show ns",
@@ -556,6 +560,12 @@ DEFUN(nsvc_nsei, nsvc_nsei_cmd,
return CMD_WARNING;
}
+ if (nsvc->nsi->bss_sns_fi) {
+ vty_out(vty, "A NS Instance using the IP Sub-Network doesn't use BLOCK/UNBLOCK/RESET%s",
+ VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
if (!strcmp(operation, "block"))
gprs_ns_tx_block(nsvc, NS_CAUSE_OM_INTERVENTION);
else if (!strcmp(operation, "unblock"))