Filer Class Reference

Public Member Functions

def __init__
def system_info
def validate
def disks
def aggregates
def aggregate_volume_names
def lun_build_name
def luns_get_specific
def luns_get_all
def lun_min_size
def lun_create
def lun_delete
def lun_resize
def volume_resize
def volumes
def volume_create
def volume_clone
def volume_delete
def volume_names
def clone
def lun_online
def lun_offline
def igroups
def igroup_create
def igroup_delete
def encode
def iscsi_initiator_add_auth
def igroup_add_initiator
def igroup_del_initiator
def lun_map
def lun_unmap
def lun_map_list_info
def lun_initiator_list_map_info
def snapshots
def snapshot_create
def snapshot_file_restore_num
def snapshot_restore_volume
def snapshot_restore_file
def snapshot_delete
def export_auth_types
def nfs_export_fs2
def nfs_export_fs_modify2
def nfs_export_remove
def nfs_exports
def volume_children
def volume_split_clone
def volume_split_status
def fcp_list
def iscsi_node_name
def interface_get_infos
def iscsi_list

Data Fields

 host
 username
 password
 timeout
 ssl

Static Public Attributes

int EUNKNOWN = 10
int ENAVOL_NAME_DUPE = 17
int ENOSPC = 28
int ETIMEOUT = 60
int EINVALID_ISCSI_NAME = 9006
int EDUPE_VOLUME_PATH = 9012
int ENO_SUCH_VOLUME = 9017
int ESIZE_TOO_LARGE = 9034
int ENO_SUCH_FS = 9036
int EVOLUME_TOO_SMALL = 9041
int EAPILICENSE = 13008
int EFSDOESNOTEXIST = 13040
int EFSOFFLINE = 13042
int EFSNAMEINVALID = 13044
int ENOSPACE = 13062
int ESERVICENOTLICENSED = 13902
int ECLONE_NAME_EXISTS = 14952
int ECLONE_LICENSE_EXPIRED = 14955
int ECLONE_NOT_LICENSED = 14956

Detailed Description

Class to handle NetApp API calls.
Note: These are using lsm terminology.

Definition at line 174 of file na.py.


Member Function Documentation

def __init__ (   self,
  host,
  username,
  password,
  timeout,
  ssl = True 
)

Definition at line 213 of file na.py.

def aggregate_volume_names (   self,
  aggr_name 
)
Return a list of volume names that are on an aggregate

Definition at line 245 of file na.py.

def aggregates (   self,
  aggr_name = None 
)
Return a list of aggregates
If aggr_name provided, return [na_aggr]

Definition at line 233 of file na.py.

def clone (   self,
  source_path,
  dest_path,
  backing_snapshot = None,
  ranges = None 
)
Creates a file clone

Definition at line 417 of file na.py.

def disks (   self  ) 

Definition at line 229 of file na.py.

def encode (   password  ) 

Definition at line 503 of file na.py.

def export_auth_types (   self  ) 

Definition at line 625 of file na.py.

def fcp_list (   self  ) 

Definition at line 763 of file na.py.

def igroup_add_initiator (   self,
  ig,
  initiator 
)

Definition at line 527 of file na.py.

def igroup_create (   self,
  name,
  igroup_type 
)

Definition at line 494 of file na.py.

def igroup_del_initiator (   self,
  ig,
  initiator 
)

Definition at line 531 of file na.py.

def igroup_delete (   self,
  name 
)

Definition at line 499 of file na.py.

def igroups (   self,
  group_name = None 
)

Definition at line 481 of file na.py.

def interface_get_infos (   self  ) 

Definition at line 793 of file na.py.

def iscsi_initiator_add_auth (   self,
  initiator,
  user_name,
  password,
  out_user,
  out_password 
)

Definition at line 508 of file na.py.

def iscsi_list (   self  ) 

Definition at line 807 of file na.py.

def iscsi_node_name (   self  ) 

Definition at line 783 of file na.py.

def lun_build_name (   self,
  volume_name,
  file_name 
)
Given a volume name and file return full path"

Definition at line 259 of file na.py.

def lun_create (   self,
  full_path_name,
  size_bytes,
  flag_thin = False 
)
Creates a lun
If flag_thin set to True, will set 'space-reservation-enabled' as
'false' which means "create a LUN without any space being reserved".

Definition at line 300 of file na.py.

def lun_delete (   self,
  lun_path 
)
Deletes a lun given a lun path

Definition at line 313 of file na.py.

def lun_initiator_list_map_info (   self,
  initiator_id,
  initiator_group_name 
)
Given an initiator_id and initiator group name, return a list of
lun-info

Definition at line 555 of file na.py.

def lun_map (   self,
  igroup,
  lun_path 
)

Definition at line 537 of file na.py.

def lun_map_list_info (   self,
  lun_path 
)

Definition at line 544 of file na.py.

def lun_min_size (   self  ) 

Definition at line 297 of file na.py.

def lun_offline (   self,
  lun_path 
)

Definition at line 478 of file na.py.

def lun_online (   self,
  lun_path 
)

Definition at line 475 of file na.py.

def lun_resize (   self,
  lun_path,
  size_bytes 
)
Re-sizes a lun

Definition at line 319 of file na.py.

def lun_unmap (   self,
  igroup,
  lun_path 
)

Definition at line 540 of file na.py.

def luns_get_all (   self  ) 
Return all lun-info

Definition at line 287 of file na.py.

def luns_get_specific (   self,
  aggr,
  na_lun_name = None,
  na_volume_name = None 
)
Return all logical units, or information about one or for all those
on a volume name.

Definition at line 265 of file na.py.

def nfs_export_fs2 (   self,
  volume_path,
  export_path,
  ro_list,
  rw_list,
  root_list,
  anonuid = None,
  sec_flavor = None 
)
NFS export a volume.

Definition at line 688 of file na.py.

def nfs_export_fs_modify2 (   self,
  volume_path,
  export_path,
  ro_list,
  rw_list,
  root_list,
  anonuid = None,
  sec_flavor = None 
)
Modifies an existing rule.

Definition at line 702 of file na.py.

def nfs_export_remove (   self,
  export_paths 
)
Removes an existing export

Definition at line 716 of file na.py.

def nfs_exports (   self  ) 
Returns a list of exports (in hash form)

Definition at line 725 of file na.py.

def snapshot_create (   self,
  volume_name,
  snapshot_name 
)

Definition at line 587 of file na.py.

def snapshot_delete (   self,
  volume_name,
  snapshot_name 
)

Definition at line 621 of file na.py.

def snapshot_file_restore_num (   self  ) 
Returns the number of executing file restore snapshots.

Definition at line 593 of file na.py.

def snapshot_restore_file (   self,
  snapshot_name,
  restore_path,
  restore_file 
)
Restore a list of files

Definition at line 610 of file na.py.

def snapshot_restore_volume (   self,
  fs_name,
  snapshot_name 
)
Restores all files on a volume

Definition at line 603 of file na.py.

def snapshots (   self,
  volume_name 
)

Definition at line 579 of file na.py.

def system_info (   self  ) 

Definition at line 220 of file na.py.

def validate (   self  ) 

Definition at line 224 of file na.py.

def volume_children (   self,
  volume 
)

Definition at line 735 of file na.py.

def volume_clone (   self,
  src_volume,
  dest_volume,
  snapshot = None 
)
Clones a volume given a source volume name, destination volume name
and optional backing snapshot.

Definition at line 373 of file na.py.

def volume_create (   self,
  aggr_name,
  vol_name,
  size_in_bytes 
)
Creates a volume given an aggr_name, volume name and size in bytes.

Definition at line 354 of file na.py.

def volume_delete (   self,
  vol_name 
)
Deletes a volume and everything on it.

Definition at line 383 of file na.py.

def volume_names (   self  ) 
Return a list of volume names

Definition at line 410 of file na.py.

def volume_resize (   self,
  na_vol_name,
  size_diff_kb 
)
Given a NetApp volume name and a size change in kb, re-size the
NetApp volume.

Definition at line 326 of file na.py.

def volume_split_clone (   self,
  volume 
)

Definition at line 749 of file na.py.

def volume_split_status (   self  ) 

Definition at line 752 of file na.py.

def volumes (   self,
  volume_name = None 
)
Return a list of NetApp volumes

Definition at line 341 of file na.py.


Field Documentation

int EAPILICENSE = 13008 [static]

Definition at line 189 of file na.py.

int ECLONE_LICENSE_EXPIRED = 14955 [static]

Definition at line 196 of file na.py.

int ECLONE_NAME_EXISTS = 14952 [static]

Definition at line 195 of file na.py.

int ECLONE_NOT_LICENSED = 14956 [static]

Definition at line 197 of file na.py.

int EDUPE_VOLUME_PATH = 9012 [static]

Definition at line 184 of file na.py.

int EFSDOESNOTEXIST = 13040 [static]

Definition at line 190 of file na.py.

int EFSNAMEINVALID = 13044 [static]

Definition at line 192 of file na.py.

int EFSOFFLINE = 13042 [static]

Definition at line 191 of file na.py.

int EINVALID_ISCSI_NAME = 9006 [static]

Definition at line 183 of file na.py.

int ENAVOL_NAME_DUPE = 17 [static]

Definition at line 180 of file na.py.

int ENO_SUCH_FS = 9036 [static]

Definition at line 187 of file na.py.

int ENO_SUCH_VOLUME = 9017 [static]

Definition at line 185 of file na.py.

int ENOSPACE = 13062 [static]

Definition at line 193 of file na.py.

int ENOSPC = 28 [static]

Definition at line 181 of file na.py.

int ESERVICENOTLICENSED = 13902 [static]

Definition at line 194 of file na.py.

int ESIZE_TOO_LARGE = 9034 [static]

Definition at line 186 of file na.py.

int ETIMEOUT = 60 [static]

Definition at line 182 of file na.py.

int EUNKNOWN = 10 [static]

Definition at line 179 of file na.py.

int EVOLUME_TOO_SMALL = 9041 [static]

Definition at line 188 of file na.py.

Definition at line 214 of file na.py.

Definition at line 216 of file na.py.

ssl

Definition at line 218 of file na.py.

Definition at line 217 of file na.py.

Definition at line 215 of file na.py.


The documentation for this class was generated from the following file:

Generated on 9 Jul 2015 for libStorageMgmt by  doxygen 1.6.1