From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: network@lists.ipfire.org Subject: Re: [PATCH 1/4] zone: add new function zone_config_list_ids Date: Tue, 25 Jul 2017 17:23:35 +0100 Message-ID: <1500999815.2180.5.camel@ipfire.org> In-Reply-To: <1500923405-17258-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0056442558629216312==" List-Id: --===============0056442558629216312== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 > --- >  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} >   --===============0056442558629216312== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSlpkM0NIQUFvSkVJQjU4UDl2a0FrSDZ1SVFBS2QvVmRDNFIwaW5UVXBFK29oVlJNYm8K QWllblQyQjF4UFhVUWtwOXJVc1JIbGhYZWRPYkQ5eFNIUE1PZTkrWHNidUtJUzZxVGJOMUNIMXhx S3ZOTCtlVgp4T2Z4SVZSSlZwYkhvS3k4bStIN05RYkNaU1ZXNmtWVDd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