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

Revision history [back]

click to hide/show revision 1
initial version

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