X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fplanetlab%2Fopenvswitch%2Fovsport.py;h=4d863d5176a5f1ee37f1917162a46e4837ca8af3;hb=23d041fe2f0d9badf6d637009e2d42a4794325c1;hp=9bdc4153825c86d3f044e6fffc84f3faad392789;hpb=d50ba1a08e541ded7a8b322493ebb1d0cc59c6ff;p=nepi.git diff --git a/src/nepi/resources/planetlab/openvswitch/ovsport.py b/src/nepi/resources/planetlab/openvswitch/ovsport.py index 9bdc4153..4d863d51 100644 --- a/src/nepi/resources/planetlab/openvswitch/ovsport.py +++ b/src/nepi/resources/planetlab/openvswitch/ovsport.py @@ -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()