[ovs-discuss] How do I push data from Open vSwitch to connected controllers?

Flavio Leitner fbl at sysclose.org
Wed Jan 4 19:02:17 UTC 2017


On Wed, 4 Jan 2017 10:43:58 +1100
Dzuy Pham <pham.dzuy at gmail.com> wrote:

> I am currently gathering the statistics live and want the switch to push
> them to the controller when a threshold has been met.

Interesting, well perhaps you could change connmgr_run() which
manages all connections to issue the stats reply when it is convenient?

connmgr_run(struct connmgr *mgr,
            void (*handle_openflow)(struct ofconn *,
                                    const struct ofpbuf *ofp_msg))
[...]
    LIST_FOR_EACH_SAFE (ofconn, next_ofconn, node, &mgr->all_conns) {
        ofconn_run(ofconn, handle_openflow);
    }
[...]

you might need to change connmgr_wait() as well to wake up properly.

That's where I would start looking at :)
Flavio

> 
> On Tue, Jan 3, 2017 at 1:45 PM, Gmail <pham.dzuy at gmail.com> wrote:
> 
> > I am currently gathering the statistics live and want to push them only
> > when a threshold has been met.
> >
> >
> > On 3/01/2017 2:46 AM, Flavio Leitner wrote:
> >  
> >> May I ask why you don't want the controller to issue a Request?
> >>  
> >
> >  



-- 
Flavio



More information about the discuss mailing list