Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OS-1487 Add bash tab completion for dladm delete-vnic and delete-ethe…

…rstub
  • Loading branch information...
commit 876d65fffce1555727cf4edd43414cf9ac9f9d29 1 parent 42473b6
@rgulewich rgulewich authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 overlay/generic/etc/bash/bash_completion.d/dladm
View
6 overlay/generic/etc/bash/bash_completion.d/dladm
@@ -22,6 +22,12 @@ _dladm()
elif [[ ${prev} =~ -.*z$ ]]; then
local zones=$(zoneadm list -c | grep -v '^global$')
COMPREPLY=( $(compgen -W "${zones}" -- ${cur}) )
+ elif [[ ${prev} =~ 'delete-vnic' ]]; then
+ local vnics=$(dladm show-vnic -p -o link)
+ COMPREPLY=( $(compgen -W "${vnics}" -- ${cur}) )
+ elif [[ ${prev} =~ 'delete-etherstub' ]]; then
+ local stubs=$(dladm show-etherstub -p)
+ COMPREPLY=( $(compgen -W "${stubs}" -- ${cur}) )
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.