Offhand, I think it should work.  Which version of POX are you using, and if 
you're using dart, is it up to date?

A bunch of the handler stuff got rewritten semi-recently.  I think there were 
some bugs, and it's possible there still are.

Also... are you sure you're getting flow stats messages from the switch?  
You've verified they're on the wire using Wireshark or something?

One thing you can do to help diagnose is to set the handler "manually" using 
core.openflow.addListener(pox.openflow.FlowStatsReceived, 
self._handle_openflow_FlowStatsReceived) or something like that.  See if the 
handler fires then.

-- Murphy

On Oct 17, 2014, at 12:16 PM, Alison Chan <chan7...@kettering.edu> wrote:

> Hello,
> If I understand core.listen_to_dependencies correctly, it
> automatically registers event handlers in a component if they are
> named according to a scheme. In my code, I have a bunch of event
> handlers, none of which are registered explicitly, I just call
> core.listen_to_dependencies in my component's __init__.
> 
> _handle_openflow_ConnectionUp
> _handle_openflow_ConnectionDown
> _handle_openflow_discovery_LinkEvent
> are all working. ConnectionUp, ConnectionDown, and LinkEvents are
> consumed just fine.
> 
> However,
> _handle_openflow_PortStatsReceived
> _handle_openflow_FlowStatsReceived
> are not working. What do I have to name these event handlers so that
> listen_to_dependencies automatically registers them?
> 
> -- 
> Alison Chan
> Kettering University
> chan7...@kettering.edu
> +1 909 278 7753

Reply via email to