isc-dhcp: support sending explicit default route

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville 2022-10-06 22:34:52 -06:00 committed by Rosen Penev
parent 1d6c7506ab
commit ffe0fc77bd

View file

@ -157,7 +157,7 @@ append_routes() {
octets=$((($prefix + 7) / 8))
compacted="$(echo "$network" | cut -d. -f1-$octets)"
string="${string:+, }$(explode "$prefix.$compacted.$router")"
string="${string:+, }$(explode "$prefix${compacted:+.$compacted}.$router")"
done
echo " option classless-ipv4-route $string;"