From: Kenyon Ralph <kenyon@kenyonralph.com>
To: zsh-workers@zsh.org
Subject: [PATCH] Completion/Linux/Command/_brctl: update brctl subcommands
Date: Sat, 4 May 2013 18:08:10 -0700 [thread overview]
Message-ID: <20130505010810.GG31660@kenyonralph.com> (raw)
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
next reply other threads:[~2013-05-05 1:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-05 1:08 Kenyon Ralph [this message]
2013-05-05 10:20 ` Frank Terbeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130505010810.GG31660@kenyonralph.com \
--to=kenyon@kenyonralph.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).