Change in osmo-ttcn3-hacks[master]: NS_Emulation: Handle NS_PROV_LINK_STATUS_DOWN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Feb 3 18:28:29 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22667 )


Change subject: NS_Emulation: Handle NS_PROV_LINK_STATUS_DOWN
......................................................................

NS_Emulation: Handle NS_PROV_LINK_STATUS_DOWN

This happens e.g. if FrameRelay detects a "service affecting condition",
i.e. the link is considered dead.

Change-Id: I7409079f5e2b77cc08ccc93d1b0baa72720cefb8
---
M library/NS_Emulation.ttcnpp
M library/NS_Provider_FR.ttcn
2 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/67/22667/1

diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp
index dc8e0ec..ec3386f 100644
--- a/library/NS_Emulation.ttcnpp
+++ b/library/NS_Emulation.ttcnpp
@@ -612,6 +612,13 @@
 		var PDU_NS rf;
 		var ASP_Event evt;
 
+		[] NSCP.receive(NS_Provider_Evt:{link_status:=NS_PROV_LINK_STATUS_DOWN}) {
+			log("Provider Link went down");
+			Tns_test.stop;
+			Tns_alive.stop;
+			f_change_state(NSVC_S_DEAD_BLOCKED);
+		}
+
 		[] NS_SP.receive(NsCtrlRequest:DisableReq) {
 			/* To make NS-VCG remove us from list of active NS-VC */
 			f_change_state(NSVC_S_DEAD_BLOCKED);
diff --git a/library/NS_Provider_FR.ttcn b/library/NS_Provider_FR.ttcn
index 1cb02dd..5138d82 100644
--- a/library/NS_Provider_FR.ttcn
+++ b/library/NS_Provider_FR.ttcn
@@ -62,6 +62,7 @@
 			}
 		[] FR.receive(FRemu_Event:{link_status:=FR_LINK_STS_UNAVAILABLE}) -> value rx_frevt {
 			link_available := false;
+			pvc_active := false;
 			NSE.send(NS_Provider_Evt:{link_status := NS_PROV_LINK_STATUS_DOWN});
 			}
 		[] FR.receive(tr_FRemu_PvcStatusAct(config.provider.fr.dlci, true)) -> value rx_frevt {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22667
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I7409079f5e2b77cc08ccc93d1b0baa72720cefb8
Gerrit-Change-Number: 22667
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210203/2573e0e0/attachment.htm>


More information about the gerrit-log mailing list