@clsinit_copy
class UdpTunnel(LinuxApplication):
_rtype = "UdpTunnel"
+ _help = "Constructs a tunnel between two Linux endpoints using a UDP connection "
+ _backend = "linux"
+
@classmethod
def _register_attributes(cls):
msg = " Failed to connect endpoints "
if proc.poll():
- self.fail()
self.error(msg, out, err)
raise RuntimeError, msg
(out, err), proc = endpoint.node.check_errors(self.run_home(endpoint))
# Out is what was written in the stderr file
if err:
- self.fail()
msg = " Failed to start command '%s' " % command
self.error(msg, out, err)
raise RuntimeError, msg
self.provision()
except:
self.fail()
- raise
+ return
self.debug("----- READY ---- ")
self.set_ready()
msg = " Failed to execute command '%s'" % command
self.error(msg, out, err)
self.fail()
- raise RuntimeError, msg
def stop(self):
""" Stops application execution
msg = " Failed to STOP tunnel"
self.error(msg, err1, err2)
self.fail()
+ return
- if self.state == ResourceState.STARTED:
self.set_stopped()
@property
else:
msg = "Couldn't retrieve %s" % filename
self.error(msg, out, err)
- self.fail()
raise RuntimeError, msg
return result