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]

click to hide/show revision 1
initial version

Hi , I may wrong . If you dont know how to convert ,and facing issue, this trick might work.( import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;) If you could import it, use the following constructor which acccepts string. NodeId src = new NodeId(string); NodeId dest= new NodeId(string); //retrieve Shortest Path link List<link> sPath = getPath(src, dest);

Hi , I may wrong . If you dont know how to convert ,and facing issue, this trick might work.( import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;) If you could import it, use the following constructor which acccepts string. **

NodeId src = new NodeId(string); NodeId(string);

NodeId dest= new NodeId(string); NodeId(string);

//retrieve Shortest Path link link

List<link> sPath = getPath(src, dest);**

Hi , I may wrong . If you dont know how to convert ,and facing issue, this trick might work.( import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;) If you could import it, use the following constructor which acccepts string. **

NodeId src = new NodeId(string);

NodeId dest= new NodeId(string);

//retrieve Shortest Path link

List<link> sPath = getPath(src, dest);**


updated : I am able to call getPath function from L2-main ! I simply added <dependency> <groupid>org.opendaylight.l2switch.loopremover</groupid> <artifactid>loopremover-impl</artifactid> <version>0.3.2-SNAPSHOT</version> </dependency>

in L2-main->impl->pom . And I am able to create object of NetworkGraphImpl and all the functions are visible ! I am using InteliJ Idea IDE which is more easier than eclipse. try it

Hi , I may wrong . If you dont know how to convert ,and facing issue, this trick might work.( import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;) If you could import it, use the following constructor which acccepts string. **

NodeId src = new NodeId(string);

NodeId dest= new NodeId(string);

//retrieve Shortest Path link

List<link> sPath = getPath(src, dest);**


updated : I am able to call getPath function from L2-main ! I simply added <dependency> <groupid>org.opendaylight.l2switch.loopremover</groupid> <artifactid>loopremover-impl</artifactid> <version>0.3.2-SNAPSHOT</version> </dependency>

in L2-main->impl->pom . And I am able to create object of NetworkGraphImpl and all the functions are visible ! try it and let me know if you face any problem .

I am using InteliJ Idea IDE which is more easier than eclipse. try itit if you like.