Different hacky attempt to change comfoconnect lease time.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user