Different hacky attempt to change comfoconnect lease time.

This commit is contained in:
2022-01-11 06:34:23 +00:00
parent 642b123a30
commit 77558f2a5d
2 changed files with 6 additions and 4 deletions

View File

@@ -15,11 +15,17 @@ jq -r '.results[] | .assigned_object.device.name + .assigned_object.virtual_mach
while read name ip owner
do
mac=$(do_curl $owner | jq -r '.mac_address')
if [[ $name == comfoconnect ]] then
extra="max-lease-time 864000; default-lease-time 864000;"
else
extra=""
fi
cat<<EOF
host $name {
fixed-address ${ip};
hardware ethernet ${mac};
${extra}
}
EOF
done