Changed the endpoint_ip and endpoint_prefix attributes of TAP/TUN endpoints for ip...
[nepi.git] / src / nepi / resources / planetlab / openvswitch / ovsport.py
index 9bdc415..db2609f 100644 (file)
@@ -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()