<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22667">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NS_Emulation: Handle NS_PROV_LINK_STATUS_DOWN<br><br>This happens e.g. if FrameRelay detects a "service affecting condition",<br>i.e. the link is considered dead.<br><br>Change-Id: I7409079f5e2b77cc08ccc93d1b0baa72720cefb8<br>---<br>M library/NS_Emulation.ttcnpp<br>M library/NS_Provider_FR.ttcn<br>2 files changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/67/22667/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp</span><br><span>index dc8e0ec..ec3386f 100644</span><br><span>--- a/library/NS_Emulation.ttcnpp</span><br><span>+++ b/library/NS_Emulation.ttcnpp</span><br><span>@@ -612,6 +612,13 @@</span><br><span>               var PDU_NS rf;</span><br><span>               var ASP_Event evt;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+                [] NSCP.receive(NS_Provider_Evt:{link_status:=NS_PROV_LINK_STATUS_DOWN}) {</span><br><span style="color: hsl(120, 100%, 40%);">+                    log("Provider Link went down");</span><br><span style="color: hsl(120, 100%, 40%);">+                     Tns_test.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+                        Tns_alive.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+                       f_change_state(NSVC_S_DEAD_BLOCKED);</span><br><span style="color: hsl(120, 100%, 40%);">+          }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>          [] NS_SP.receive(NsCtrlRequest:DisableReq) {</span><br><span>                         /* To make NS-VCG remove us from list of active NS-VC */</span><br><span>                     f_change_state(NSVC_S_DEAD_BLOCKED);</span><br><span>diff --git a/library/NS_Provider_FR.ttcn b/library/NS_Provider_FR.ttcn</span><br><span>index 1cb02dd..5138d82 100644</span><br><span>--- a/library/NS_Provider_FR.ttcn</span><br><span>+++ b/library/NS_Provider_FR.ttcn</span><br><span>@@ -62,6 +62,7 @@</span><br><span>                    }</span><br><span>            [] FR.receive(FRemu_Event:{link_status:=FR_LINK_STS_UNAVAILABLE}) -> value rx_frevt {</span><br><span>                     link_available := false;</span><br><span style="color: hsl(120, 100%, 40%);">+                      pvc_active := false;</span><br><span>                         NSE.send(NS_Provider_Evt:{link_status := NS_PROV_LINK_STATUS_DOWN});</span><br><span>                         }</span><br><span>            [] FR.receive(tr_FRemu_PvcStatusAct(config.provider.fr.dlci, true)) -> value rx_frevt {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22667">change 22667</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/+/22667"/><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: I7409079f5e2b77cc08ccc93d1b0baa72720cefb8 </div>
<div style="display:none"> Gerrit-Change-Number: 22667 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>