#autoload

# This file was auto-generated

# Copyright C 2008-2009 by Isilon Systems, Inc. All rights not expressly
# granted herein are reserved.
# Created in the United States of America.
# 
# This digital media is protected by U.S. and international copyright and
# intellectual property laws. Unless otherwise specified, all information
# and screens appearing as part of this digital medium, including
# software, services, documents, text, images, icons, and logos design;
# the selection, assembly, arrangement, and design thereof; and the code
# that enables its presentation, are the sole property of Isilon Systems,
# Inc.
# 
# Except as otherwise required by applicable law, no part of any
# copyrighted material may be reproduced, modified, translated,
# distributed, published, or transmitted by any means, electronic or
# mechanical, for any purpose, without the prior written consent of Isilon
# Systems. 
#  
# Isilon and Isilon Systems are registered trademarks of Isilon Systems,
# Inc.  Legion is a trademark of Isilon Systems, Inc.  All other
# trademarks and registered trademarks are the property of their
# respective holders.


(( $+functions[__isi_classic_nfs] )) ||
_isi_classic_nfs() {
  if (( CURRENT == 2 )); then
    _tags values && { compadd $@ exports locks clients flexprotect netgroup }
  else
    local cmd=${words[2]}
    (( CURRENT-- ))
    shift words
    if [[ $cmd == exports ]]; then
      curcontext="${curcontext%:*:*}:isi_classic-nfs-exports:"
      _isi_classic_nfs_exports
    elif [[ $cmd == netgroup ]]; then
      curcontext="${curcontext%:*:*}:isi_classic-nfs-netgroup:"
      _isi_classic_nfs_netgroup
    elif [[ $cmd == locks ]]; then
      _tags values && { compadd $@ list waiters }
    elif [[ $cmd == clients ]]; then
      _tags values && { compadd $@ list remove }
    else
      _message "unknown isi nfs command: $words[1]"
    fi
  fi
}

(( $+functions[_isi_classic_nfs_exports] )) ||
_isi_classic_nfs_exports() {
  if (( CURRENT == 2 )); then
    _tags values && { compadd $@ list ls create new modify change delete rm remove }
  else
    local cmd=${words[2]}
    (( CURRENT-- ))
    shift words
  fi
}

(( $+functions[_isi_classic_nfs_netgroup] )) ||
_isi_classic_nfs_netgroup() {
  if (( CURRENT == 2 )); then
    _tags values && { compadd $@ flush load save check }
  else
    local cmd=${words[2]}
    (( CURRENT-- ))
    shift words
  fi
}