<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18765">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18765/3/src/osmo-bsc/bsc_vty.c">File src/osmo-bsc/bsc_vty.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18765/3/src/osmo-bsc/bsc_vty.c@2094">Patch Set #3, Line 2094:</a> <code style="font-family:monospace,monospace">FIRST [LAST]</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'm not sure if this FIRST / LAST (generic variables that accept any kind of string) is the best her […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I thought allowing hex is a neat idea, because you're dividing a number of MSC across a range of bits. So I thought one would assign 0-0x0ff and 0x100-0x2ff and so on. But of course dividing the range isn't always by a power of two, and writing those back in integer is a quirk.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Yet this case is not like common vty range checking because the nri-bitlen is configurable: even if the vty says <0-32767> we will normally have only <0-1023> allowed (nri-bitlen == 10).</p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm a bit undecided... what is more clear?</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  nri add <0-32767> <0-32767><br>  NRI_STR "add\n" "First value of NRI range, should be a number within nri-bitlen\n" "Last...\n"</pre><p style="white-space: pre-wrap; word-wrap: break-word;">or</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  nri add FIRST LAST<br>  <br>I notice that the current patch also fails to explain the ranges...</pre><p style="white-space: pre-wrap; word-wrap: break-word;">...well, yeah, best remove ambiguity of hex vs decimal, it's a non-feature</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18765">change 18765</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/osmo-bsc/+/18765"/><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-Change-Id: I6c251f2744d7be26fc4ad74adefc96a6a3fe08b0 </div>
<div style="display:none"> Gerrit-Change-Number: 18765 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 16 Jun 2020 21:27:48 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>