aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-09-17 04:39:14 +0200
committerAlexander Couzens <lynxis@fe80.eu>2018-09-17 04:39:14 +0200
commit35c3494d91fb1190f3416e621ba6ecadbdc4b01e (patch)
tree404304a159610c0d00b7a5a9a652c0d87deb7749 /src
parent5afef7c7123c0b99710bedc47f4d70216110377e (diff)
sgsn: use gtp_clear_queues() when reset sgsn state
Allow ttcn3 to flush the gtp queue between each test. Fixes ttcn3 test SGSN_Tests.TC_attach_pdp_act_deact_mt_t3395_expire Change-Id: I49d70cb7abe5cbe92ea68882fa68eccec0e79586
Diffstat (limited to 'src')
-rw-r--r--src/gprs/sgsn_vty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gprs/sgsn_vty.c b/src/gprs/sgsn_vty.c
index 057be9f0b..154e5766a 100644
--- a/src/gprs/sgsn_vty.c
+++ b/src/gprs/sgsn_vty.c
@@ -823,6 +823,9 @@ DEFUN_HIDDEN(reset_sgsn_state,
bssgp_flush_all_queues();
vty_out(vty, "Flushed all BSSGPs queues.%s", VTY_NEWLINE);
+ gtp_clear_queues(sgsn->gsn);
+ vty_out(vty, "Restarted connection to GGSN.%s", VTY_NEWLINE);
+
/* remove all queues to bssgp */
return CMD_SUCCESS;
}