git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replacing _backend for _platform class attribute in ResourceManager
[nepi.git]
/
src
/
nepi
/
resources
/
planetlab
/
openvswitch
/
ovsport.py
diff --git
a/src/nepi/resources/planetlab/openvswitch/ovsport.py
b/src/nepi/resources/planetlab/openvswitch/ovsport.py
index
9bdc415
..
4d863d5
100644
(file)
--- 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"
_rtype = "planetlab::OVSPort"
_help = "Runs an OpenVSwitch on a PlanetLab host"
- _
backend
= "planetlab"
+ _
platform
= "planetlab"
_authorized_connections = ["planetlab::OVSSwitch", "linux::UdpTunnel", "linux::Tunnel"]
_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)
"""
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)
"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)
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):
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.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()
#Check the status of the OVS Switch
self.ovsswitch.ovs_status()