# /etc/bash_completion.d/ovs - bash-completion for openvpn-server
# This is kludgy but not really worth improving until the rest of ovs is cleaned up


_ovs()
{
  _ovs_commands=$(ovs help --short)

  local cur prev
  COMPREPLY=()
  cur="${COMP_WORDS[COMP_CWORD]}"
  COMPREPLY=( $(compgen -W "${_ovs_commands}" -- ${cur}) )

  return 0
}
complete -o nospace -F _ovs ovs
