<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15893">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns_vty: return success for disabled FR/GRE<br><br>Do not return a warning and therefore fail parsing the config when the<br>"encapsulation framerelay-gre local-ip" command is used and FR/GRE is<br>disabled. Having this in the config does no harm and allows keeping the<br>same config if it is enabled later.<br><br>This fixes the currently failing vty tests for osmo-sgsn.<br><br>Fixes: a0c8195ad37292ab800a6c777fc28383995b4b64 ("vty: Return error if cmd returns CMD_WARNING while reading cfg file")<br>Change-Id: Ic225232fbfca49ba868427eaf898e1f6e34e1ca8<br>---<br>M src/gb/gprs_ns_vty.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/93/15893/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns_vty.c b/src/gb/gprs_ns_vty.c</span><br><span>index 4a90436..df11bdb 100644</span><br><span>--- a/src/gb/gprs_ns_vty.c</span><br><span>+++ b/src/gb/gprs_ns_vty.c</span><br><span>@@ -510,7 +510,9 @@</span><br><span> </span><br><span>         if (!vty_nsi->frgre.enabled) {</span><br><span>            vty_out(vty, "FR/GRE is not enabled%s", VTY_NEWLINE);</span><br><span style="color: hsl(0, 100%, 40%);">-         return CMD_WARNING;</span><br><span style="color: hsl(120, 100%, 40%);">+           /* Don't return CMD_WARNING here, having the config param even if it is not enabled does not harm and</span><br><span style="color: hsl(120, 100%, 40%);">+              * allows keeping config if enabled later. */</span><br><span style="color: hsl(120, 100%, 40%);">+         return CMD_SUCCESS;</span><br><span>  }</span><br><span>    inet_aton(argv[0], &ia);</span><br><span>         vty_nsi->frgre.local_ip = osmo_ntohl(ia.s_addr);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15893">change 15893</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/libosmocore/+/15893"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic225232fbfca49ba868427eaf898e1f6e34e1ca8 </div>
<div style="display:none"> Gerrit-Change-Number: 15893 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>