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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSSGP_Emulation: Send BssgpResetIndication when PTP BVC are being reset<br><br>This notifies the user via the MGMT port about the fact that an inbound<br>BVC-RESET procedure just happened.<br><br>Change-Id: I54d0d5e0e06a330a90dfb1da06062d65022efe81<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>M library/BSSGP_Emulation.ttcnpp<br>2 files changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn</span><br><span>index df32174..78eb389 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -384,6 +384,9 @@</span><br><span>    [] SGSN_MGMT.receive(BssgpStatusIndication:{*, ?, ?}) {</span><br><span>              repeat;</span><br><span>              }</span><br><span style="color: hsl(120, 100%, 40%);">+     [] SGSN_MGMT.receive(BssgpResetIndication:?) {</span><br><span style="color: hsl(120, 100%, 40%);">+                repeat;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span>    [] SGSN_MGMT.receive {</span><br><span>               setverdict(fail, "Received unexpected message on SGSN_MGMT");</span><br><span>              mtc.stop;</span><br><span>diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp</span><br><span>index 2fa588b..c39adaa 100644</span><br><span>--- a/library/BSSGP_Emulation.ttcnpp</span><br><span>+++ b/library/BSSGP_Emulation.ttcnpp</span><br><span>@@ -1157,6 +1157,9 @@</span><br><span>       /* we are a SGSN: BSS/PCU-originated RESET must have a cell ID */</span><br><span>    [g_sgsn_role] BVC.receive(tr_ptp_BnsUdInd(tr_BVC_RESET(?, g_cfg.bvci, g_cfg.cell_id), 0)) -> value udi {</span><br><span>          log("Rx BVC-RESET from BVCI=", g_cfg.bvci);</span><br><span style="color: hsl(120, 100%, 40%);">+         if (MGMT.checkstate("Connected")) {</span><br><span style="color: hsl(120, 100%, 40%);">+                 MGMT.send(BssgpResetIndication:{g_cfg.bvci});</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span>            /* Respond to RESET with correct BVCI but without CellID */</span><br><span>          BVC.send(ts_ptp_BnsUdReq(ts_BVC_RESET_ACK(g_cfg.bvci, omit), 0, g_bvc_lsp));</span><br><span>                 /* FIXME: reset all state? What about clients? */</span><br><span>@@ -1165,6 +1168,9 @@</span><br><span>    /* we are a BSS/PCU: SGSN-originated RESET must not have a cell ID */</span><br><span>        [not g_sgsn_role] BVC.receive(tr_ptp_BnsUdInd(tr_BVC_RESET(?, g_cfg.bvci, omit), 0)) -> value udi {</span><br><span>               log("Rx BVC-RESET from BVCI=", g_cfg.bvci);</span><br><span style="color: hsl(120, 100%, 40%);">+         if (MGMT.checkstate("Connected")) {</span><br><span style="color: hsl(120, 100%, 40%);">+                 MGMT.send(BssgpResetIndication:{g_cfg.bvci});</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span>            /* Respond to RESET with correct BVCI with CellID */</span><br><span>                 BVC.send(ts_ptp_BnsUdReq(ts_BVC_RESET_ACK(g_cfg.bvci, g_cfg.cell_id), 0, g_bvc_lsp));</span><br><span>                /* FIXME: reset all state? What about clients? */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21383">change 21383</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/+/21383"/><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: I54d0d5e0e06a330a90dfb1da06062d65022efe81 </div>
<div style="display:none"> Gerrit-Change-Number: 21383 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </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: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>