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.
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.