listenermininetpox

POX component listen to events


I want to discover the topology of a network emulated by mininet using POX components. I figured out that I need to write my own component, which is listening to LinkEvents. Something like:

someObject.addListenerByName("LinkEvent", someFunction)

But I don't actually know on what kind of an object i should execute this.

If I execute it as

core.openflow_discovery.addListenerByName("LinkEvent", someFunction)

as stated in the openflow.discovery module, it throws the following error:

AttributeError: 'openflow_discovery' not registered

Solution

  • Fixed it by calling addListenerByName from within launch().