<p>neels <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25388">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  neels: Looks good to me, approved
  osmith: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: verify new CTRL 'rf_states' and 'bts.N.rf_states'<br><br>Related: SYS#5542<br>Depends: I14fa2678fc8f2c11a879c5e9615ac552782c5b7e (osmo-bsc)<br>Change-Id: I01e6f391a5e71b0606c42be9b57f8a1687d59bcb<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 25 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index cbe6bad..965a448 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -2850,6 +2850,31 @@</span><br><span>         f_ctrl_get_exp(IPA_CTRL, "stat_item.last.bsc.0.num_trx:rsl_connected", int2str(nr_bts));</span><br><span>   f_ctrl_get_exp(IPA_CTRL, "stat_item.last.bsc.0.num_trx:total", int2str(NUM_BTS_CFG));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Verify rf_states exposed on CTRL interface */</span><br><span style="color: hsl(120, 100%, 40%);">+      var charstring expect_net_rf_states := "";</span><br><span style="color: hsl(120, 100%, 40%);">+  for (var integer i := 0; i < NUM_BTS_CFG; i := i + 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+            var charstring expect_bts_rf_states := int2str(i) & ",0,";</span><br><span style="color: hsl(120, 100%, 40%);">+              if (i < NUM_BTS) {</span><br><span style="color: hsl(120, 100%, 40%);">+                 /* In these tests, OML for the first NUM_BTS are always connected via osmo-bts-omldummy */</span><br><span style="color: hsl(120, 100%, 40%);">+                    expect_bts_rf_states := expect_bts_rf_states & "operational,unlocked,";</span><br><span style="color: hsl(120, 100%, 40%);">+         } else {</span><br><span style="color: hsl(120, 100%, 40%);">+                      /* For remaining i < NUM_BTS_CFG, OML is not connected, i.e. inoperational */</span><br><span style="color: hsl(120, 100%, 40%);">+                      expect_bts_rf_states := expect_bts_rf_states & "inoperational,locked,";</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+             /* The RF policy is still global in osmo-bsc, i.e. always "on" */</span><br><span style="color: hsl(120, 100%, 40%);">+           expect_bts_rf_states := expect_bts_rf_states & "on,";</span><br><span style="color: hsl(120, 100%, 40%);">+           if (i < nr_bts) {</span><br><span style="color: hsl(120, 100%, 40%);">+                  /* For BTS where RSL is connected, the RSL state will be "up" */</span><br><span style="color: hsl(120, 100%, 40%);">+                    expect_bts_rf_states := expect_bts_rf_states & "rsl-up;";</span><br><span style="color: hsl(120, 100%, 40%);">+               } else {</span><br><span style="color: hsl(120, 100%, 40%);">+                      expect_bts_rf_states := expect_bts_rf_states & "rsl-down;";</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           f_ctrl_get_exp(IPA_CTRL, "bts." & int2str(i) & ".rf_states", expect_bts_rf_states);</span><br><span style="color: hsl(120, 100%, 40%);">+               expect_net_rf_states := expect_net_rf_states & expect_bts_rf_states;</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span style="color: hsl(120, 100%, 40%);">+     f_ctrl_get_exp(IPA_CTRL, "rf_states", expect_net_rf_states);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>     f_shutdown_helper();</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25388">change 25388</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-ttcn3-hacks/+/25388"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I01e6f391a5e71b0606c42be9b57f8a1687d59bcb </div>
<div style="display:none"> Gerrit-Change-Number: 25388 </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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>