Hi David,

Thread database polling, once you will get a trigger execute a  function.

--
Stas

> Date: Wed, 6 Jan 2016 03:26:09 -0800
> From: David Gabriel <[email protected]>
> Subject: [Ryu-devel] periodic interaction with external data base
> To: [email protected]
> Message-ID:
>         <
camyzk1djkrs3tm6p1fynykhfrcdfqgobdcxp3+gca+vlowh...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
>  Dears,
>
> It is my first time to Ryu.
> I want to run an application that depends on:
> 1- openflow events (like simple switch app you provide in the tutorial)
and
> also
> 2- external events (provided by an external Data Base - DB).
> In fact, I have a python scirpt that periodacally check my data base to
get
> new modification. I am wondering how can I integrate it in my Ryu
> application in order to be updated from my data base and consequently
> change the behaviour of my ovs switch ?
> I want to run only one application (one source file) because there some
> variables to be shared and I want to know how to integrate my source code
> (that gets the DB update) into my Ryu application (that is very closed to
> simple_switch.py) ?
> If you recommand using two separte file please tell me how to change my DB
> script in order to be a Ryu application ?
>
> Thanks in advance.
> Regards
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to