Change in osmo-sgsn[master]: sgsn: use gtp_clear_queues() when reset sgsn state

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Sep 17 10:36:21 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10988 )

Change subject: sgsn: use gtp_clear_queues() when reset sgsn state
......................................................................

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
---
M src/gprs/sgsn_vty.c
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/gprs/sgsn_vty.c b/src/gprs/sgsn_vty.c
index 057be9f..154e576 100644
--- a/src/gprs/sgsn_vty.c
+++ b/src/gprs/sgsn_vty.c
@@ -823,6 +823,9 @@
 	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;
 }

-- 
To view, visit https://gerrit.osmocom.org/10988
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I49d70cb7abe5cbe92ea68882fa68eccec0e79586
Gerrit-Change-Number: 10988
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180917/d64ee415/attachment.htm>


More information about the gerrit-log mailing list