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


How to put cost-value on link in MD-SAL Helium.

asked 2015-03-26 04:31:36 -0700


I am working on assignment in MD-sal helium in which my requirement is to associate cost value to link which is inbetween nodes. such that I can use getMaxThroughputPath(srcIP, destIP) function of Dijekstra inplementation.

Thanks Devesh

edit retag flag offensive close merge delete


HI , I request you to please respond to question. Gratitude Devesh

devverma ( 2015-03-30 02:59:55 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-25 19:20:34 -0700

jeffcavalcante gravatar image

You can create an YANG module which augments the network-topology data tree with a leaf for the link's cost.

Create a yang file like this on your provider plugin:

module link-cost{
/* put all the required things for a module here like namespace and revision */

    augment "network-topology/topology/link"{
        leaf cost{
            type whatever-you-need; //I would recommend an enumeration
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2015-03-26 04:31:36 -0700

Seen: 139 times

Last updated: Jun 25 '15