<p>Stefan Sperling has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10026">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix handling of invalid pchan names in vty<br><br>If an invalid phys_chan_config is specified in osmo-bsc.cfg, raise<br>a parsing error at program startup.<br><br>If an invalid phys_chan_config is specified in in the VTY while<br>the program is running, show a warning to inform the user that<br>the configuration change was not applied.<br><br>Change-Id: I97baa359464a0e94de2497bc9214b99ed2a24041<br>Related: OS#1876<br>---<br>M src/osmo-bsc/bsc_vty.c<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/26/10026/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c</span><br><span>index 57c5363..dd4396d 100644</span><br><span>--- a/src/osmo-bsc/bsc_vty.c</span><br><span>+++ b/src/osmo-bsc/bsc_vty.c</span><br><span>@@ -4032,8 +4032,12 @@</span><br><span>     int pchanc;</span><br><span> </span><br><span>      pchanc = gsm_pchan_parse(argv[0]);</span><br><span style="color: hsl(0, 100%, 40%);">-      if (pchanc < 0)</span><br><span style="color: hsl(120, 100%, 40%);">+    if (pchanc < 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+          vty_out(vty, "Unknown physical channel name '%s'%s", argv[0], VTY_NEWLINE);</span><br><span style="color: hsl(120, 100%, 40%);">+         if (vty->type == VTY_FILE)</span><br><span style="color: hsl(120, 100%, 40%);">+                 return CMD_ERR_NO_MATCH;</span><br><span>             return CMD_WARNING;</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span> </span><br><span>        ts->pchan = pchanc;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10026">change 10026</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/10026"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I97baa359464a0e94de2497bc9214b99ed2a24041 </div>
<div style="display:none"> Gerrit-Change-Number: 10026 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>