Ici aussi
darcs-hash:20060205003520-72cb0-64cf323e82161f8c84e74d4c575de42196cd0305.gz
This commit is contained in:
parent
10db96264f
commit
22be72b28d
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ def ipsec_ok(machine) :
|
||||||
if hostname != "ragnarok":
|
if hostname != "ragnarok":
|
||||||
if not os.path.isfile("/usr/scripts/gestion/clef-encap"):
|
if not os.path.isfile("/usr/scripts/gestion/clef-encap"):
|
||||||
return None
|
return None
|
||||||
prefix = "ssh -i /usr/scripts/gestion/clef-encap root@nectaris.crans.org "
|
prefix = "ssh -i /usr/scripts/gestion/clef-encap root@ragnarok.crans.org "
|
||||||
clients = globals()['clients_ipsec']
|
clients = globals()['clients_ipsec']
|
||||||
if clients == None:
|
if clients == None:
|
||||||
clients = commands.getoutput("%snetstat -r -f encap | awk '($1 == \"0/0\") {print $3}'" % prefix).split("\n")
|
clients = commands.getoutput("%snetstat -r -f encap | awk '($1 == \"0/0\") {print $3}'" % prefix).split("\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue