]> git.ipfire.org Git - people/ms/network.git/commitdiff
zone: config list print also hids
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 26 Jul 2017 08:44:39 +0000 (10:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Jul 2017 09:49:22 +0000 (11:49 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.zone

index 3e48cb6d91cbe184a483edc1b1bc75d105bced66..a3ca029c26576b39405c48b36ec9ed4e0d0a3ba5 100644 (file)
@@ -643,21 +643,22 @@ zone_config_list() {
        assert isset zone
 
        # Print a nice header
-       local format="%-3s %-20s"
-       print "${format}" "ID" "HOOK"
+       local format="%-3s %-20s %-20s"
+       print "${format}" "ID" "HOOK" "HID"
 
        local config
        local hook
        local id
+       local hid
 
        # Print for all config:
        # id and hook
-       # TODO: Add hids here
        for config in $(zone_configs_list "${zone}"); do
                id=${config##*.}
                hook=$(zone_config_get_hook "${zone}" "${config}")
+               hid=$(zone_config_get_hid "${zone}" "${config}")
                assert isset hook
-               print "${format}" "${id}" "${hook}"
+               print "${format}" "${id}" "${hook}" "${hid}"
        done
 }