Changing ResourceManager naming for platform::ResourceName
[nepi.git] / src / nepi / resources / planetlab / openvswitch / ovsport.py
index 107c809..9bdc415 100644 (file)
@@ -40,11 +40,11 @@ class OVSPort(LinuxApplication):
 
     """
     
-    _rtype = "OVSPort"
+    _rtype = "planetlab::OVSPort"
     _help = "Runs an OpenVSwitch on a PlanetLab host"
     _backend = "planetlab"
 
-    _authorized_connections = ["OVSSwitch", "LinuxUdpTunnel", "LinuxTunnel"]      
+    _authorized_connections = ["planetlab::OVSSwitch", "linux::UdpTunnel", "linux::Tunnel"]      
 
     @classmethod
     def _register_attributes(cls):
@@ -183,8 +183,8 @@ class OVSPort(LinuxApplication):
         self.info("The number of the %s is %s" % (self.get('port_name'), 
            self.port_number))
 
-        if remote_endpoint.is_rm_instance("PlanetlabTap"):
-            self._vroute = self.ec.register_resource("PlanetlabVroute")
+        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, "network", self.get("network"))