# ODL-Lithium-SR2: set link weights / costs

• OS: Linux Ubuntu 14.04.3 LTS
• OpenDaylight version: ODL-Lithium-SR2
• Features: features:install odl-ovsdb-openstack odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core

My ODL is installed on a VM, while in another VM there is my Mininet network topology in which each link has its delay. The VMs can communicate via a private network and the communication works fine. The Mininet network topology has loops and I would like to change link weights/costs to force ODL to choose a particular switch in the path from a host to another one.

My question is: can I change link weights? How can I do? I would like to set link weights equal to their delay (e.g. if a link has a delay of 10ms, link weight would be 10).