<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20399">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Set all NM OML objects to Locked by default<br><br>Before they were set with a value of 0, which had no related enum field,<br>but since in general all comparsions are done against NM_STATE_UNLOCKED<br>they also hold valid.<br><br>The major change in behavior with this patch is upon OML link down,<br>where gsm_bts_mo_reset() is called on all objects. This way, upon OML<br>re-establishment we have again all objects as Locked again, which is the<br>expected default value as per TS 12.21.<br><br>Change-Id: I68ae0bc51a565f903b47cf72f3e3dd6f1a2d2651<br>---<br>M src/osmo-bsc/gsm_data.c<br>1 file changed, 1 insertion(+), 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/99/20399/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/gsm_data.c b/src/osmo-bsc/gsm_data.c</span><br><span>index fbc2ae2..18fd5cf 100644</span><br><span>--- a/src/osmo-bsc/gsm_data.c</span><br><span>+++ b/src/osmo-bsc/gsm_data.c</span><br><span>@@ -152,6 +152,7 @@</span><br><span> {</span><br><span>       mo->nm_state.operational = NM_OPSTATE_NULL;</span><br><span>       mo->nm_state.availability = NM_AVSTATE_POWER_OFF;</span><br><span style="color: hsl(120, 100%, 40%);">+  mo->nm_state.administrative = NM_STATE_LOCKED;</span><br><span> }</span><br><span> </span><br><span> void gsm_mo_init(struct gsm_abis_mo *mo, struct gsm_bts *bts,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20399">change 20399</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/+/20399"/><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: I68ae0bc51a565f903b47cf72f3e3dd6f1a2d2651 </div>
<div style="display:none"> Gerrit-Change-Number: 20399 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>