Change in libosmo-sccp[master]: Add "no traffic-mode" configuration to AS

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Dec 1 19:57:07 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16394 )


Change subject: Add "no traffic-mode" configuration to AS
......................................................................

Add "no traffic-mode" configuration to AS

As per RFC4666 it is optional whether or not a traffic-mode IE is
part of ASPAC requests from ASP to SG.  We implemented that so far
by having none as default, unless the user specified an explicit
traffic-mode in the VTY.  However, we had no command to remove that
explicit configuration and return to the implicit one.

Change-Id: Ibe2b298dd76dc4b02521dc411ae9d570eaf5a9a2
---
M src/osmo_ss7_vty.c
1 file changed, 11 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/94/16394/1

diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 591254e..eaf5326 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -866,6 +866,16 @@
 	return CMD_SUCCESS;
 }
 
+DEFUN(as_no_traf_mode, as_no_traf_mode_cmd,
+	"no traffic-mode",
+	NO_STR "Remove explicit traffic-mode configuration for this AS\n")
+{
+	struct osmo_ss7_as *as = vty->index;
+	as->cfg.mode = 0;
+	as->cfg.mode_set_by_vty = false;
+	return CMD_SUCCESS;
+}
+
 DEFUN(as_recov_tout, as_recov_tout_cmd,
 	"recovery-timeout <1-2000>",
 	"Specifies the recovery timeout value in milliseconds\n"
@@ -1920,6 +1930,7 @@
 	install_element(L_CS7_AS_NODE, &as_asp_cmd);
 	install_element(L_CS7_AS_NODE, &as_no_asp_cmd);
 	install_element(L_CS7_AS_NODE, &as_traf_mode_cmd);
+	install_element(L_CS7_AS_NODE, &as_no_traf_mode_cmd);
 	install_element(L_CS7_AS_NODE, &as_recov_tout_cmd);
 	install_element(L_CS7_AS_NODE, &as_qos_class_cmd);
 	install_element(L_CS7_AS_NODE, &as_rout_key_cmd);

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16394
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Ibe2b298dd76dc4b02521dc411ae9d570eaf5a9a2
Gerrit-Change-Number: 16394
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191201/8c42866b/attachment.htm>


More information about the gerrit-log mailing list