Ask Your Question
0

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

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

Hi.

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

Comments

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
0

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

Follow
2 followers

Stats

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

Seen: 125 times

Last updated: Jun 25 '15