laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22519 )

Change subject: CTRL_Adapter: Add function f_ipa_ctrl_wait_link_down
......................................................................

CTRL_Adapter: Add function f_ipa_ctrl_wait_link_down

Change-Id: Ia9f08dae76774925de8a08c7e313965280cb51b0
---
M library/Osmocom_CTRL_Adapter.ttcn
1 file changed, 14 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/Osmocom_CTRL_Adapter.ttcn 
b/library/Osmocom_CTRL_Adapter.ttcn
index fefff8b..e1fba1b 100644
--- a/library/Osmocom_CTRL_Adapter.ttcn
+++ b/library/Osmocom_CTRL_Adapter.ttcn
@@ -40,6 +40,20 @@
        }
 }

+/* wait for IPA CTRL link to connect and send UP */
+function f_ipa_ctrl_wait_link_down()
+runs on CTRL_Adapter_CT {
+       timer T := 10.0;
+       T.start;
+       alt {
+       [] IPA_CTRL.receive(tr_ASP_IPA_EV(ASP_IPA_EVENT_DOWN)) { }
+       [] T.timeout {
+               setverdict(fail, "Timeout CTRL waiting for ASP_IPA_EVENT_DOWN");
+               mtc.stop;
+               }
+       }
+}
+
 /*! Start the CTRL client connection to the specified CTRL IP+Port server*/
 function f_ipa_ctrl_start_client(charstring bsc_host, PortNumber bsc_port)
 runs on CTRL_Adapter_CT {

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22519
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: Ia9f08dae76774925de8a08c7e313965280cb51b0
Gerrit-Change-Number: 22519
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to