Replacing _backend for _platform class attribute in ResourceManager
[nepi.git] / src / nepi / resources / planetlab / openvswitch / ovsport.py
index 9bdc415..4d863d5 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"]      
 
@@ -53,7 +53,7 @@ class OVSPort(LinuxApplication):
         """
         port_name = Attribute("port_name", "Name of the port",
             flags = Flags.Design)                      
-        endpoint_ip = Attribute("endpoint_ip", "IP of the endpoint. This is the attribute " 
+        ip = Attribute("ip", "IP of the endpoint. This is the attribute " 
                                 "you should use to establish a tunnel or a remote "
                                 "connection between endpoint",
             flags = Flags.Design)
@@ -61,7 +61,7 @@ class OVSPort(LinuxApplication):
             flags = Flags.Design)      
 
         cls._register_attribute(port_name)
-        cls._register_attribute(endpoint_ip)
+        cls._register_attribute(ip)
         cls._register_attribute(network)
 
     def __init__(self, ec, guid):
@@ -278,7 +278,7 @@ class OVSPort(LinuxApplication):
 
         self.create_port()
         end_ip = self.ovsswitch.get('virtual_ip_pref').split('/')
-        self.set("endpoint_ip", end_ip[0])
+        self.set("ip", end_ip[0])
 
         #Check the status of the OVS Switch
         self.ovsswitch.ovs_status()