<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18767">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: add 'mscpool roundrobin next' for ttcn3 tests<br><br>In the ttcn3 tests, the MSC round robin algorithm is affected by what tests ran<br>before, so an osmo-bsc test needs this to reset the round robin to get<br>predictable behavior to test against.<br><br>Change-Id: I2155d906505a26744966f442ffb1e87a6a9b494c<br>---<br>M src/osmo-bsc/osmo_bsc_vty.c<br>1 file changed, 13 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/67/18767/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/osmo_bsc_vty.c b/src/osmo-bsc/osmo_bsc_vty.c</span><br><span>index 63744d5..719198f 100644</span><br><span>--- a/src/osmo-bsc/osmo_bsc_vty.c</span><br><span>+++ b/src/osmo-bsc/osmo_bsc_vty.c</span><br><span>@@ -914,6 +914,18 @@</span><br><span>  return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+DEFUN(mscpool_roundrobin_next, mscpool_roundrobin_next_cmd,</span><br><span style="color: hsl(120, 100%, 40%);">+      "mscpool roundrobin next " MSC_NR_RANGE,</span><br><span style="color: hsl(120, 100%, 40%);">+      "MSC pooling: load balancing across multiple MSCs.\n"</span><br><span style="color: hsl(120, 100%, 40%);">+      "Adjust current state of the MSC round-robin algorithm (for testing).\n"</span><br><span style="color: hsl(120, 100%, 40%);">+      "Set the MSC nr to direct the next new subscriber to (for testing).\n"</span><br><span style="color: hsl(120, 100%, 40%);">+      "MSC number, as in the config file; if the number does not exist,"</span><br><span style="color: hsl(120, 100%, 40%);">+      " the round-robin continues to the next valid number.\n")</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+        bsc_gsmnet->mscs_round_robin_next_nr = atoi(argv[0]);</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> int bsc_vty_init_extra(void)</span><br><span> {</span><br><span>        struct gsm_network *net = bsc_gsmnet;</span><br><span>@@ -978,6 +990,7 @@</span><br><span>  install_element_ve(&show_nri_cmd);</span><br><span> </span><br><span>   install_element(ENABLE_NODE, &gen_position_trap_cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+     install_element(ENABLE_NODE, &mscpool_roundrobin_next_cmd);</span><br><span> </span><br><span>  install_element(CFG_LOG_NODE, &logging_fltr_imsi_cmd);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18767">change 18767</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/+/18767"/><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: I2155d906505a26744966f442ffb1e87a6a9b494c </div>
<div style="display:none"> Gerrit-Change-Number: 18767 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>