Hi,
very good patchset!
Nothing to complain. Merged.
-Michael
On Mon, 2017-07-24 at 21:10 +0200, Jonatan Schlag wrote:
Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org
src/functions/functions.zone | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/src/functions/functions.zone b/src/functions/functions.zone index 91ce629..bba1705 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -641,6 +641,21 @@ zone_config_show() { zone_config_cmd "show" "$@" } +# Returns a list of all used ids for a zone +zone_config_list_ids() {
- assert [ $# -eq 1 ]
- local zone=${1}
- local config
- local ids
- for config in $(zone_configs_list ${zone}); do
list_append ids "$(config_get_id_from_config
${config})"
- done
- echo ${ids}
+}
zone_show() { local zone=${1}