]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/configs/ipv4-static
ipv4-static: Remove routing information from databases when shutting down a zone.
[people/stevee/network.git] / src / hooks / configs / ipv4-static
index 72b748c777054c232436981b0de765d813f75b3f..cb002526ab1f3c66f7f7db0627e1a1cd604187b9 100644 (file)
@@ -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}