From f799b76daef72a92628288fda6257934d04162c0 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 25 Jan 2017 14:48:20 +0100 Subject: [PATCH] ipv4-static: Remove routing information from databases when shutting down a zone. Otherwise the script will try to use this route again and crash because the address space is not longer available. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- src/hooks/configs/ipv4-static | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/configs/ipv4-static b/src/hooks/configs/ipv4-static index 72b748c7..cb002526 100644 --- a/src/hooks/configs/ipv4-static +++ b/src/hooks/configs/ipv4-static @@ -147,7 +147,10 @@ hook_down() { error "Zone '${zone}' doesn't exist." exit ${EXIT_ERROR} fi - + + # Remove routing information from database. + db_delete "${zone}/ipv4" + zone_config_settings_read "${zone}" "${config}" ip_address_del ${zone} ${ADDRESS}/${PREFIX} -- 2.47.2