assert device_exists ${interface}
-# XXX LOAD ZONE CONFIGURATION
-
basename="$(basename $0)"
log DEBUG "${basename} called for interface=${interface} reason=${reason}"
# Save configuration
routing_db_set ${interface} ipv4 type "ipv4-dhcp"
routing_db_set ${interface} ipv4 local-ip-address "${new_ip_address}/${new_prefix}"
- routing_db_set ${interface} ipv4 remote-ip-address "${new_router}"
+ routing_db_set ${interface} ipv4 remote-ip-address "${new_routers}"
routing_db_set ${interface} ipv4 active 1
# Update the routing tables.
routing_update ${interface} ipv4
+ routing_default_update
fi
;;
esac
ipv4_flush_device ${interface}
fi
+ routing_db_remove ${interface} ipv4
+ routing_default_update
+
exit 0
;;
esac