From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: network@lists.ipfire.org Subject: Re: [PATCH 5/6] network: add color commands Date: Wed, 14 Jun 2017 22:10:05 +0100 Message-ID: <1497474605.2416.15.camel@ipfire.org> In-Reply-To: <1497003452-10190-5-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2816355619936721129==" List-Id: --===============2816355619936721129== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, On Fri, 2017-06-09 at 12:17 +0200, Jonatan Schlag wrote: > Signed-off-by: Jonatan Schlag > --- >  src/network | 6 ++++++ >  1 file changed, 6 insertions(+) > > diff --git a/src/network b/src/network > index e0d57a0..1bccdea 100644 > --- a/src/network > +++ b/src/network > @@ -518,6 +518,9 @@ cli_port() { >   edit|create|remove|up|down|status|identify) >   port_${action} "${port}" $@ >   ;; > + color) > + color_cli "port" "${port}" $@ > + ;; >   *) >   error "Unrecognized argument: > ${action}" >   exit ${EXIT_ERROR} Indentation of ;; is incorrect. > @@ -576,6 +579,9 @@ cli_zone() { >   config|disable|down|edit|enable|identify|sta > tus|up) >   zone_${action} ${zone} $@ >   ;; > + color) > + color_cli "zone" "${zone}" $@ > + ;; >   *) >   error "Unrecognized argument: > ${action}" >   cli_show_man network-zone Apart from that this is really elegantly solved ;) -Michael --===============2816355619936721129== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjIKCmlRSWNCQUFC Q2dBR0JRSlpRYVl0QUFvSkVJQjU4UDl2a0FrSDArOFAvM0lKYjJhT09zQ3N4TjFseVpBNElIcnEK UjBLWDFzQmdRbVZxUUFobDNnZU1MS1NTMmxDcGYzZWdyTFp4L3BzdGRGZ2pXdmpmOTdKVnZoYWNT RHhXWGRKNAp1ZmJBdzdBcHpXUkNi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