X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fudptunnel.py;h=29089fd04199c817ff39a5a116d8873ef866bd49;hb=1e2eb157cb569e9c28a5b7888ed97076d27414cb;hp=3cfefbed593781ab8b3c21b48b482fdb8d087480;hpb=09ac796bac9aa2c41c5ad830f404fe128fffb22d;p=nepi.git diff --git a/src/nepi/resources/linux/udptunnel.py b/src/nepi/resources/linux/udptunnel.py index 3cfefbed..29089fd0 100644 --- a/src/nepi/resources/linux/udptunnel.py +++ b/src/nepi/resources/linux/udptunnel.py @@ -43,25 +43,25 @@ class UdpTunnel(LinuxApplication): default = None, allowed = ["PLAIN", "AES", "Blowfish", "DES", "DES3"], type = Types.Enumerate, - flags = Flags.ExecReadOnly) + flags = Flags.Design) cipher_key = Attribute("cipherKey", "Specify a symmetric encryption key with which to protect " "packets across the tunnel. python-crypto must be installed " "on the system." , - flags = Flags.ExecReadOnly) + flags = Flags.Design) txqueuelen = Attribute("txQueueLen", "Specifies the interface's transmission queue length. " "Defaults to 1000. ", type = Types.Integer, - flags = Flags.ExecReadOnly) + flags = Flags.Design) bwlimit = Attribute("bwLimit", "Specifies the interface's emulated bandwidth in bytes " "per second.", type = Types.Integer, - flags = Flags.ExecReadOnly) + flags = Flags.Design) cls._register_attribute(cipher) cls._register_attribute(cipher_key) @@ -198,7 +198,6 @@ class UdpTunnel(LinuxApplication): self.do_discover() self.do_provision() - self.debug("----- READY ---- ") self.set_ready() def do_start(self): @@ -266,7 +265,7 @@ class UdpTunnel(LinuxApplication): self.error(msg, err1, err2) self.fail() else: - self.set_finished() + self.set_stopped() self._last_state_check = tnow() @@ -290,7 +289,7 @@ class UdpTunnel(LinuxApplication): result = None delay = 1.0 - for i in xrange(4): + for i in xrange(20): (out, err), proc = endpoint.node.check_output( self.run_home(endpoint), filename)