Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

Hi Robert,

This is what worked for me:

    TopologyId topoId = new TopologyId("flow:1");
    InstanceIdentifier topoIdentifier = InstanceIdentifier.builder(NetworkTopology.class).child(Topology.class, new TopologyKey(topoId)).toInstance();
     Topology topology = (Topology) dataProviderService.readOperationalData(topoIdentifier);
    List<Link> links = topology .getLink();

I have documented it here:

http://sdntutorials.com/how-to-look-up-topology-and-links-in-md-sal/