<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16394">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add "no traffic-mode" configuration to AS<br><br>As per RFC4666 it is optional whether or not a traffic-mode IE is<br>part of ASPAC requests from ASP to SG.  We implemented that so far<br>by having none as default, unless the user specified an explicit<br>traffic-mode in the VTY.  However, we had no command to remove that<br>explicit configuration and return to the implicit one.<br><br>Change-Id: Ibe2b298dd76dc4b02521dc411ae9d570eaf5a9a2<br>---<br>M src/osmo_ss7_vty.c<br>1 file changed, 11 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/94/16394/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c</span><br><span>index 591254e..eaf5326 100644</span><br><span>--- a/src/osmo_ss7_vty.c</span><br><span>+++ b/src/osmo_ss7_vty.c</span><br><span>@@ -866,6 +866,16 @@</span><br><span>      return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(as_no_traf_mode, as_no_traf_mode_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+     "no traffic-mode",</span><br><span style="color: hsl(120, 100%, 40%);">+  NO_STR "Remove explicit traffic-mode configuration for this AS\n")</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+       struct osmo_ss7_as *as = vty->index;</span><br><span style="color: hsl(120, 100%, 40%);">+       as->cfg.mode = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+  as->cfg.mode_set_by_vty = false;</span><br><span style="color: hsl(120, 100%, 40%);">+   return CMD_SUCCESS;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> DEFUN(as_recov_tout, as_recov_tout_cmd,</span><br><span>  "recovery-timeout <1-2000>",</span><br><span>         "Specifies the recovery timeout value in milliseconds\n"</span><br><span>@@ -1920,6 +1930,7 @@</span><br><span>   install_element(L_CS7_AS_NODE, &as_asp_cmd);</span><br><span>     install_element(L_CS7_AS_NODE, &as_no_asp_cmd);</span><br><span>  install_element(L_CS7_AS_NODE, &as_traf_mode_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+        install_element(L_CS7_AS_NODE, &as_no_traf_mode_cmd);</span><br><span>    install_element(L_CS7_AS_NODE, &as_recov_tout_cmd);</span><br><span>      install_element(L_CS7_AS_NODE, &as_qos_class_cmd);</span><br><span>       install_element(L_CS7_AS_NODE, &as_rout_key_cmd);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16394">change 16394</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmo-sccp/+/16394"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ibe2b298dd76dc4b02521dc411ae9d570eaf5a9a2 </div>
<div style="display:none"> Gerrit-Change-Number: 16394 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>