]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/configs/ipv4-dhcp
Replace routing_db_* by db_*
[people/stevee/network.git] / src / hooks / configs / ipv4-dhcp
index ea78d0969b49a27be0761f26beb289821a53f2ba..c3fa5008b298770d93dc70e95fa0a67e07570efe 100644 (file)
@@ -101,8 +101,8 @@ hook_status() {
        fi
        cli_statusline 3 "${HOOK}" "${status}"
 
-       cli_print_fmt1 3 "IPv4 address" "$(routing_db_get ${zone} ipv4 local-ip-address)"
-       local gateway=$(routing_db_get ${zone} ipv4 remote-ip-address)
+       cli_print_fmt1 3 "IPv4 address" "$(db_get "${zone}/ipv4/local-ip-address")"
+       local gateway="$(db_get "${zone}/ipv4/remote-ip-address")"
        if isset gateway; then
                cli_print_fmt1 3 "Gateway" "${gateway}"
        fi