Problem with TopologyManager API

asked 2014-07-03 15:36:58 -0800

adisarun gravatar image

updated 2014-07-03 15:37:22 -0800

Hi,

I've implemented IListenDataPacket interface in my OSGi component and would like to get the list of nodes attached to the NodeConnector ("port") or Node ("Switch") on which a packet is received. I used the getHostsAttachedToNodeConnector(nodeConnector) method in ITopologyManager.

Though I get the port and switch information of the packet correctly (checked with print statements), the above mentioned method call from ITopologyManager always returns "null". Any idea on what could be the problem?

I tested this component with a basic linear topology using mininet.

Thanks.

P.S.: I can view the corresponding topology of my mininet command in GUI. So I assume the topology database is populated. But not sure why these methods return null.

edit retag flag offensive close merge delete