]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/hooks/zones/6to4-tunnel
Replace routing_db_* by db_*
[people/ms/network.git] / src / hooks / zones / 6to4-tunnel
index fb8c449b70a220f5b554c6096d86d8a6c5f436a4..2a200e05b6a955eb570dfe271207d6cfde6e3ff7 100644 (file)
@@ -124,9 +124,9 @@ hook_up() {
        ip_address_add ${zone} ${LOCAL_ADDRESS6}
 
        # Update routing information.
-       routing_db_set ${zone} ipv6 type "${HOOK}"
-       routing_db_set ${zone} ipv6 local-ip-address "${LOCAL_ADDRESS6}"
-       routing_db_set ${zone} ipv6 active 1
+       db_set "${zone}/ipv6/type" "${HOOK}"
+       db_set "${zone}/ipv6/local-ip-address" "${LOCAL_ADDRESS6}"
+       db_set "${zone}/ipv6/active" 1
 
        # Update the routing database.
        routing_update ${zone} ipv6
@@ -140,7 +140,8 @@ hook_down() {
        assert isset zone
 
        # Remove everything from the routing db.
-       routing_db_remove ${zone} ipv6
+       db_delete "${zone}/ipv6"
+
        routing_update ${zone} ipv6
        routing_default_update