Jordi Ortiz
unread,Jul 17, 2017, 8:56:33 AM7/17/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jonathan Hart, Northbound brigade, ONOS Developers, ONOS Deployments Brigade
Hi,
On Fri, 14 Jul 2017 23:30:52 +0000
Jonathan Hart <
jo...@onlab.us> wrote:
> Hi Jordi,
>
> There is a way you can get some feedback on the success or failure of a
> FlowObjective even in the current system. FlowObjectives have
> add(ObjectiveContext) and remove(ObjectiveContext) methods. The
> ObjectiveContext you provide will be called when the flow objective either
> succeeds or fails.
>
> Is that good enough for your use case?
Thanks, indeed it is.
I think that works for the removal, when the meter removal depends on having removed the related flows.
For the addition, i.e: when the flows depend on meter creation, I have used CompletableFuture. So the meter request is a CompletableFuture that on complete() launchs the FlowObjective creation. It "works" but not sure how to handle errors. Meaning that if a CompletableFuture fails not sure how to abort the whole service creation since other FlowObjectives of the service have been created while waiting for the meter.
Regards
Jordi
--
Jordi Ortiz
jordi.o...@gmail.com
(+34)868888532
http://webs.um.es/jordi.ortiz/
Dpto. Ingeniería de la Información y las Comunicaciones
Universidad de Murcia