]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.radvd
Replace routing_db_* by db_*
[people/stevee/network.git] / src / functions / functions.radvd
index 21fd1e474035a5844d514a635062b54367626827..1a47b758a581a00bf7a32a3711bfad1255b981c1 100644 (file)
@@ -50,16 +50,16 @@ __radvd_config_interface() {
 
        # If the interface does not provide any routing information,
        # we can skip this whole stuff.
-       if ! routing_db_exists ${zone} ipv6; then
+       if ! db_exists "${zone}/ipv6"; then
                return ${EXIT_OK}
        fi
 
        # Skip if zone is not active.
-       local active=$(routing_db_get ${zone} ipv6 active)
+       local active="$(db_get "${zone}/ipv6/active")"
        [ "${active}" = "0" ] && return ${EXIT_OK}
 
        # Skip if there is no prefix or prefix is link-local.
-       local addr=$(routing_db_get ${zone} ipv6 local-ip-address)
+       local addr="$(db_get "${zone}/ipv6/local-ip-address")"
        if [ -z "${addr}" ] || [ "${addr:0:5}" = "fe80:" ]; then
                return ${EXIT_OK}
        fi