FdNetDevice working with PlanetLab TAPs
[nepi.git] / src / nepi / resources / planetlab / openvswitch / ovsport.py
index db2609f..f80db45 100644 (file)
@@ -42,7 +42,7 @@ class OVSPort(LinuxApplication):
     
     _rtype = "planetlab::OVSPort"
     _help = "Runs an OpenVSwitch on a PlanetLab host"
-    _backend = "planetlab"
+    _platform = "planetlab"
 
     _authorized_connections = ["planetlab::OVSSwitch", "linux::UdpTunnel", "linux::Tunnel"]      
 
@@ -186,6 +186,8 @@ class OVSPort(LinuxApplication):
         if remote_endpoint.is_rm_instance("planetlab::Tap"):
             self._vroute = self.ec.register_resource("planetlab::Vroute")
             self.ec.set(self._vroute, "action", "add")
+            self.ec.set(self._vroute, "prefix", remote_endpoint.get("prefix"))
+            self.ec.set(self._vroute, "nexthop", remote_endpoint.get("pointopoint"))
             self.ec.set(self._vroute, "network", self.get("network"))
 
             print "Vroute Guid :" + str(self._vroute)