Skip to content

Commit

Permalink
Modify port name, SSH timeout, file system available size (#608)
Browse files Browse the repository at this point in the history
* Modify port name, SSH timeout, file system available size
  • Loading branch information
guankc authored Jun 29, 2021
1 parent a52ca00 commit 7586af7
Show file tree
Hide file tree
Showing 6 changed files with 468 additions and 100 deletions.
3 changes: 3 additions & 0 deletions delfin/drivers/netapp/dataontap/cluster_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ def clear_alert(self, context, alert):
@staticmethod
def get_access_url():
return 'https://{ip}'

def get_alert_sources(self, context):
return self.netapp_handler.get_alert_sources()
13 changes: 12 additions & 1 deletion delfin/drivers/netapp/dataontap/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,29 @@
CIFS_SHARE_SPLIT_STR = " Vserve"
SHARE_AGREEMENT_SHOW_COMMAND = "vserver show -fields Allowed-protocols"
VSERVER_SHOW_COMMAND = "vserver show -type data"
NFS_SHARE_SHOW_COMMAND = "volume show -junction-active true -instance"

STORAGE_VENDOR = "netapp"
STORAGE_MODEL = "cmodel"

QUOTA_SHOW_DETAIL_COMMAND = "volume quota policy rule show -instance"
QUOTA_SPLIT_STR = " Vserve"

MGT_IP_COMMAND = "network interface show -fields address -role cluster-mgmt"
NODE_IP_COMMAND = "network interface show -fields address -role node-mgmt"

AGGREGATE_NAME = "e"
POOL_NAME = "ame"
DISK_NAME = "k"
CONTROLLER_NAME = "e"
VSERVER_NAME = "r"

SECURITY_STYLE = {
'mixed': constants.NASSecurityMode.MIXED,
'ntfs': constants.NASSecurityMode.NTFS,
'unix': constants.NASSecurityMode.UNIX
}

STORAGE_STATUS = {
'ok': constants.StorageStatus.NORMAL,
'ok-with-suppressed': constants.StorageStatus.NORMAL,
Expand Down Expand Up @@ -183,7 +193,8 @@
WORM_TYPE = {
'non-snaplock': constants.WORMType.NON_WORM,
'compliance': constants.WORMType.COMPLIANCE,
'enterprise': constants.WORMType.ENTERPRISE
'enterprise': constants.WORMType.ENTERPRISE,
'-': constants.WORMType.NON_WORM
}

QUOTA_TYPE = {
Expand Down
Loading

0 comments on commit 7586af7

Please sign in to comment.