Added routes to OMF nodes
[nepi.git] / src / nepi / testbeds / netns / metadata.py
index 7b2f6ff..36e914a 100644 (file)
@@ -245,7 +245,7 @@ def configure_node(testbed_instance, guid):
         return
     routes = testbed_instance._add_route[guid]
     for route in routes:
-        (destination, netprefix, nexthop, metric) = route
+        (destination, netprefix, nexthop, metric, device) = route
         element.add_route(prefix = destination, prefix_len = netprefix,
             nexthop = nexthop, metric = metric)
 
@@ -406,6 +406,7 @@ attributes = dict({
                 "help": "Link up",
                 "type": Attribute.BOOL,
                 "value": True,
+                "flags": Attribute.NoDefaultValue, 
                 "validation_function": validation.is_bool
             }),
     "device_name": dict({