Hi Brian,

“The right way is to create two DGs and put a process in between” : I am using 
a JAVA application to call the DGs, do you mean that I call 1st DG to mount, 
then return the control to JAVA to check the device is “connected”, and when 
it’s connected, I call the 2nd DG ?

“If you really need to do it in one DG – then you can use a for loop node that 
tests a condition.” : If I go this way, the DG will send a REST to check 
status, and if not “connected”, the loop will repeat again to make another REST 
call. If we say 200-500 ms for the REST call, this means tens of REST calls in 
a few seconds. So again, we still need a way to “wait” to “block” the DG from 
processing quickly into the next steps.

Thanks.

Abdelmuhaimen Seaudi
Orange Labs Egypt
Email: [email protected]<mailto:[email protected]>
Mobile: +2012 84644 733

From: FREEMAN, BRIAN D [mailto:[email protected]]
Sent: Thursday, October 26, 2017 02:39 PM
To: Abdelmuhaimen Seaudi; [email protected]
Cc: SEAUDI Abdelmuhaimen OBS/CSO
Subject: RE: [onap-discuss] DG Builder (wait or sleep ?)

The right way is to create two DGs and put a process in between that checks for 
the connected state in the netconf mount.

If you really need to do it in one DG – then you can use a for loop node that 
tests a condition.

You may want to either use an execute node to test or you can use rest api call 
node to check the status of the mount point in the controller config tree to 
see if the state is “connected”.

Brian


From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Abdelmuhaimen Seaudi
Sent: Thursday, October 26, 2017 3:21 AM
To: [email protected]<mailto:[email protected]>
Cc: abdelmuhaimen. seaudi 
<[email protected]<mailto:[email protected]>>
Subject: [onap-discuss] DG Builder (wait or sleep ?)

Hi,

When I mount a device from a DG using rest api plugin, it can take a while for 
the device to be mounted.

I need to have the DG wait or sleep or loop idle to check that the device 
status is "connected" before processing the next node.

Is there a way to perform such action of waiting in DG Builder ?

Thanks.

Abdelmuhaimen Seaudi, CCIE # 25265
Email: [email protected]<mailto:[email protected]>
Skype: aseaudi
LinkedIn: 
www.linkedin.com/in/aseaudi<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_aseaudi&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=dQoC6cl0XubEahomHMtDaOADza0NLi4asyZ_QbQ4hPA&s=Wk3olg_jjrJfRtO9tQR3F2_3axmoC_XZat41b7lMtaQ&e=>
Telephone: +2012 84644 733


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to