From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24533 invoked by alias); 5 May 2013 01:16:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31371 Received: (qmail 15182 invoked from network); 5 May 2013 01:16:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at kenyonralph.com designates 173.255.215.209 as permitted sender) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=kenyonralph.com; h=date :from:to:subject:message-id:mime-version:content-type; s= postfix; bh=flrmboSOTWW0BB5PbTshQEOiDF4=; b=ckJeM86ETiqHthTH5fQx KEeK3ZTsn4/Cw+5TdC9Jo/VUgYyQveYFksHohwvEesWd3qkxWO1EcILnwhU4eTn0 Rk0hVbpORaOucCIicBqVYfREH7fqWeTzZzyvdMACvRTATfcg1QCM7Q0tMcdTRWgw q7e3svsm7EbWV9KHGFla9zo= DomainKey-Signature: a=rsa-sha1; c=simple; d=kenyonralph.com; h=date :from:to:subject:message-id:mime-version:content-type; q=dns; s= postfix; b=iHxhKn6b9O4pLWazkpec6PJYONDP3jvXTS5j80zKp65gyHbTsi6dU Ov1rhsqu8GbYSzdx3mYctCSahLiPgGTbMBDvudkhdxjyUablbhChZxoj4BbANdkH ezbiQz/UH5stpLxnRd2PiaPFh9kcdPl9ZY2EQIdXBVo96XlVbvCahQ= Date: Sat, 4 May 2013 18:08:10 -0700 From: Kenyon Ralph To: zsh-workers@zsh.org Subject: [PATCH] Completion/Linux/Command/_brctl: update brctl subcommands Message-ID: <20130505010810.GG31660@kenyonralph.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Add hairpin and showstp. These are available since at least bridge-utils 1.5. --- Completion/Linux/Command/_brctl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Completion/Linux/Command/_brctl b/Completion/Linux/Command/_brctl index 8773268..6e65d12 100644 --- a/Completion/Linux/Command/_brctl +++ b/Completion/Linux/Command/_brctl @@ -10,10 +10,12 @@ if (( CURRENT == 2 )); then show:show\ all\ current\ bridge\ instances addif:add\ interface\ to\ bridge delif:remove\ interface\ from\ bridge + hairpin:toggle\ hairpin\ mode\ on\ a\ port showmacs:show\ a\ list\ of\ learned\ MAC\ addresses setageing:set\ MAC\ address\ ageing\ time setgcint:set\ grabage\ collection\ interval stp:control\ use\ of\ spanning\ tree\ protocol + showstp:show\ bridge\ stp\ info setbridgeprio:set\ bridge\ priority setfd:set\ bridge\ forward\ delay sethello:set\ bridge\ hello\ time @@ -41,7 +43,7 @@ else setbridgeprio) _message -e priority 'priority' ;; - setpathcost|setportprio) + setpathcost|setportprio|hairpin) _message -e ports 'port' ;; stp) @@ -56,6 +58,8 @@ else _message -e cost 'cost' elif [[ $subcmd == setportprio ]]; then _message -e priority 'priority' + elif [[ $subcmd == hairpin ]]; then + _message -e onoff 'on|off' fi fi fi -- 1.7.10.4