added metric to routes
[nepi.git] / src / nepi / testbeds / netns / metadata_v01.py
index 240f504..aa3a805 100644 (file)
@@ -232,9 +232,9 @@ def configure_node(testbed_instance, guid):
         return
     routes = testbed_instance._add_route[guid]
     for route in routes:
-        (destination, netprefix, nexthop) = route
+        (destination, netprefix, nexthop, metric) = route
         element.add_route(prefix = destination, prefix_len = netprefix,
-            nexthop = nexthop)
+            nexthop = nexthop, metric = metric)
 
 ### Factory information ###