Commit aca01b62 authored by Julien Muchembled's avatar Julien Muchembled

playbook: rina: let re6stnet control entirely when to enroll

It's all the more important as the IPCP often crashes when the address is
unknown during enrollment. See https://github.com/IRATI/stack/issues/872
parent 875561ff
...@@ -24,6 +24,17 @@ with open("/etc/default.dif") as f: ...@@ -24,6 +24,17 @@ with open("/etc/default.dif") as f:
del default["knownIPCProcessAddresses"][:] del default["knownIPCProcessAddresses"][:]
# Avoid enrollment failures due to unknown IPCP address.
enrollment = {
"maxEnrollmentRetries": 0,
"declaredDeadIntervalInMs": 60000,
}
for x in default["enrollmentTaskConfiguration"]["policySet"]["parameters"]:
try:
x["value"] = str(enrollment[x["name"]])
except KeyError:
pass
d = "/etc/ipcm-re6st" d = "/etc/ipcm-re6st"
os.path.isdir(d) or os.makedirs(d) os.path.isdir(d) or os.makedirs(d)
os.chdir(d) os.chdir(d)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment