Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pure #791

Merged
merged 90 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
202624f
pure
zhilong-xu Oct 14, 2021
2a14e4b
pure去掉日志
zhilong-xu Oct 14, 2021
c5083b8
pure
zhilong-xu Oct 14, 2021
ac42cf1
pure 路径配置
zhilong-xu Oct 14, 2021
881b77b
Merge branch 'master' into pure
zhilong-xu Oct 14, 2021
9454fbb
pure 优化命名,测试类
zhilong-xu Oct 15, 2021
0ba6ca7
pure 去掉中文
zhilong-xu Oct 15, 2021
53fba15
Merge pull request #276 from zhilong-xu/pure
luopan-code Oct 15, 2021
e951075
pure codeview 代码简洁优化
zhilong-xu Oct 28, 2021
7f9265d
Merge pull request #281 from zhilong-xu/pure
luopan-code Oct 28, 2021
247cd5e
pure codeview-Modify according to specifications
zhilong-xu Nov 8, 2021
5f639f2
pure codeview-Modify according to specifications
zhilong-xu Nov 8, 2021
231c09b
Merge pull request #289 from zhilong-xu/pure
luopan-code Nov 8, 2021
952aaa0
pure codeview-recompose test_reset_connection
zhilong-xu Nov 8, 2021
fff2e43
pure codeview-recompose log test_reset_connection
zhilong-xu Nov 8, 2021
594c2ba
pure codeview-test func format
zhilong-xu Nov 9, 2021
7aaa252
pure codeview-test File name modification
zhilong-xu Nov 9, 2021
b2deff4
Merge pull request #290 from zhilong-xu/pure
luopan-code Nov 10, 2021
cefca2c
pure codeview-Delete unnecessary Definitions
zhilong-xu Nov 10, 2021
840e697
Merge pull request #297 from zhilong-xu/pure
luopan-code Nov 10, 2021
11c61c9
pure codeview-Modified the function name
zhilong-xu Nov 11, 2021
2c761fc
pure codeview-Modified the function name
zhilong-xu Nov 11, 2021
008c5cc
Merge pull request #298 from zhilong-xu/pure
luopan-code Nov 11, 2021
19a7a81
pure codeview-Add files and change class names
zhilong-xu Nov 11, 2021
f7352a8
Merge pull request #299 from zhilong-xu/pure
luopan-code Nov 11, 2021
555bdc8
pure codeview-Remove unnecessary function wrapping
zhilong-xu Nov 11, 2021
41df07b
Merge pull request #300 from zhilong-xu/pure
luopan-code Nov 12, 2021
000fbef
pure codeview-login amend
zhilong-xu Nov 12, 2021
aa26167
pure codeview-login amend
zhilong-xu Nov 12, 2021
922cd7b
pure codeview-The log print statement is modified
zhilong-xu Nov 12, 2021
02dcc2e
pure codeview-file path
zhilong-xu Nov 15, 2021
56d4b2d
pure codeview-login log
zhilong-xu Nov 15, 2021
ee537b4
pure codeview-login log
zhilong-xu Nov 15, 2021
08981a5
pure codeview-file path and class name
zhilong-xu Nov 15, 2021
c2eed42
pure codeview-token log
zhilong-xu Nov 15, 2021
7473811
pure codeview-token session log
zhilong-xu Nov 15, 2021
3542fad
pure codeview-storage model
zhilong-xu Nov 15, 2021
6ec2515
pure codeview-get_volumes token
zhilong-xu Nov 15, 2021
a6e19dc
pure codeview-get_storage model
zhilong-xu Nov 15, 2021
b968959
pure codeview-disk capacity and alerts Time conversion
zhilong-xu Nov 15, 2021
3b96e44
pure codeview-alerts Time conversion
zhilong-xu Nov 15, 2021
ec6054f
pure codeview-Business correction
zhilong-xu Nov 16, 2021
d868ac0
pure codeview-list_port add hardware
zhilong-xu Nov 16, 2021
b39524d
pure codeview-list_port type
zhilong-xu Nov 16, 2021
5fc6166
pure codeview-get_ports func iqn
zhilong-xu Nov 17, 2021
8cd8216
pure codeview-login,logout
zhilong-xu Nov 17, 2021
ae66b86
pure codeview-format
zhilong-xu Nov 17, 2021
6ce479b
pure codeview-get_storage model and Delete list_storage_pools
zhilong-xu Nov 17, 2021
6cc51f2
pure codeview-list_volumes Delete native_storage_pool_id
zhilong-xu Nov 17, 2021
08c873b
pure codeview-get_storage Not empty processing
zhilong-xu Nov 17, 2021
0628dbb
pure codeview-rest_call
zhilong-xu Nov 17, 2021
61347dd
pure codeview-test
zhilong-xu Nov 17, 2021
5efe895
pure codeview-port mac_address
zhilong-xu Nov 17, 2021
d8d4c66
pure codeview-port mac_address ipv4
zhilong-xu Nov 17, 2021
f94bb22
pure codeview-list_alerts
zhilong-xu Nov 17, 2021
11e98e5
pure codeview-add parse_alert test
zhilong-xu Nov 18, 2021
393fdb7
pure codeview-add list_quotas list_shares list_filesystems
zhilong-xu Nov 18, 2021
cd39e88
pure codeview-delete list_quotas list_shares list_filesystems
zhilong-xu Nov 18, 2021
d59ad99
pure codeview-revamp parse_alert
zhilong-xu Nov 18, 2021
8bcc1f4
pure codeview-revamp parse_alert
zhilong-xu Nov 18, 2021
d09a9dc
pure codeview-test parse_alert
zhilong-xu Nov 22, 2021
25f6352
Merge pull request #309 from zhilong-xu/pure
luopan-code Nov 22, 2021
f700dc9
pure codeview-get_storage Capacity field Modification
zhilong-xu Nov 23, 2021
6acfaa1
pure codeview-get_storage total_capacity field Modification
zhilong-xu Nov 23, 2021
8c7815a
pure codeview-alert description
zhilong-xu Nov 24, 2021
82505f3
pure codeview-alert description
zhilong-xu Nov 24, 2021
6777fb3
pure codeview-alert description
zhilong-xu Nov 24, 2021
d32286b
pure codeview-Code indentation
zhilong-xu Nov 25, 2021
ae58678
Merge pull request #319 from zhilong-xu/pure
luopan-code Nov 25, 2021
0304cb2
pure amend-list_alert query_para;port eth;get_storage total; disk filter
zhilong-xu Dec 1, 2021
a02e506
pure amend-get_storage total disk
zhilong-xu Dec 1, 2021
e044fa2
pure amend-list_alerts timestamp
zhilong-xu Dec 2, 2021
b7e8928
pure amend-login port list_alert
zhilong-xu Dec 2, 2021
ce8d3c5
pure amend - alert remove sequence_number
zhilong-xu Dec 3, 2021
ab9b3fe
pure amend-list_controllers status;list_disks type;
zhilong-xu Dec 3, 2021
991b859
pure amend-test func
zhilong-xu Dec 4, 2021
6fbbfe7
pure amend-Code formatting
zhilong-xu Dec 4, 2021
6138692
Merge pull request #340 from zhilong-xu/pure
ghca-cxl Dec 4, 2021
b55d1c1
pure amend-remove disk id and controllers id
zhilong-xu Dec 4, 2021
98b41e1
Merge pull request #341 from zhilong-xu/pure
ghca-cxl Dec 4, 2021
c5a75a8
Merge pull request #5 from sodafoundation/master
zhilong-xu Jan 5, 2022
2e313ac
Merge branch 'master' into pure
zhilong-xu Jan 5, 2022
7bcbbf2
add pure
zhilong-xu Jan 5, 2022
570f731
Merge branch 'pure_2022' into pure_2022
zhilong-xu Jan 5, 2022
6fa7d0e
Merge branch 'pure_2022' into pure
zhilong-xu Jan 5, 2022
790f769
Merge pull request #6 from gh-ca/pure
zhilong-xu Jan 5, 2022
fca080a
Merge pull request #410 from zhilong-xu/pure_2022
ghca-cxl Jan 5, 2022
d7ea065
copyright information
zhilong-xu Jan 6, 2022
025039e
Merge pull request #411 from zhilong-xu/pure_2022
ghca-cxl Jan 6, 2022
09be3da
Merge branch 'master' into pure_2022
tanjiangyu-ghca Jan 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added delfin/drivers/pure/__init__.py
Empty file.
Empty file.
96 changes: 96 additions & 0 deletions delfin/drivers/pure/flasharray/consts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Copyright 2022 The SODA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from delfin.common import constants

# The default volume
DEFAULT_CAPACITY = 0

# The default speed
DEFAULT_SPEED = 0

# The default list_alerts time conversion
DEFAULT_LIST_ALERTS_TIME_CONVERSION = 1000

# The default count for the get_volumes_info function
DEFAULT_COUNT_GET_VOLUMES_INFO = 0

# Number of re-logins
RE_LOGIN_TIMES = 3

# Constant one
CONSTANT_ONE = 1
# Constant zero
CONSTANT_ZERO = 0

# Success status code
SUCCESS_STATUS_CODE = 200

# Status code of no permission
PERMISSION_DENIED_STATUS_CODE = 401

# Custom token of Pure
CUSTOM_TOKEN = 'x-next-token'

# The default get_storage model
CONTROLLER_PRIMARY = 'primary'

# Normal value of the controller status
NORMAL_CONTROLLER_STATUS = 'ready'

# disk type
DISK_TYPE_NVRAM = 'NVRAM'

# The account password is incorrect during login.
LOGIN_PASSWORD_ERR = 'invalid credentials'

# list_port: Add ":" to the WWN every 2 sequences.
SPLICE_WWN_SERIAL = 2
SPLICE_WWN_COLON = ':'

SEVERITY_MAP = {'fatal': constants.Severity.FATAL,
'critical': constants.Severity.CRITICAL,
'major': constants.Severity.MAJOR,
'minor': constants.Severity.MINOR,
'warning': constants.Severity.WARNING,
'informational': constants.Severity.INFORMATIONAL,
'NotSpecified': constants.Severity.NOT_SPECIFIED}
CATEGORY_MAP = {'fault': constants.Category.FAULT,
'event': constants.Category.EVENT,
'recovery': constants.Category.RECOVERY,
'notSpecified': constants.Category.NOT_SPECIFIED}
CONTROLLER_STATUS_MAP = {'normal': constants.ControllerStatus.NORMAL,
'ok': constants.ControllerStatus.NORMAL,
'offline': constants.ControllerStatus.OFFLINE,
'not_installed': constants.ControllerStatus.OFFLINE,
'fault': constants.ControllerStatus.FAULT,
'degraded': constants.ControllerStatus.DEGRADED,
'unready': constants.ControllerStatus.UNKNOWN}
DISK_STATUS_MAP = {'normal': constants.DiskStatus.NORMAL,
'healthy': constants.DiskStatus.NORMAL,
'abnormal': constants.DiskStatus.ABNORMAL,
'unhealthy': constants.DiskStatus.ABNORMAL,
'offline': constants.DiskStatus.OFFLINE}
PORT_STATUS_MAP = {'ok': constants.PortHealthStatus.NORMAL,
'not_installed': constants.PortHealthStatus.ABNORMAL
}

PARSE_ALERT_ALERT_ID = '1.3.6.1.2.1.1.3.0'
PARSE_ALERT_STORAGE_NAME = '1.3.6.1.4.1.40482.3.1'
PARSE_ALERT_CONTROLLER_NAME = '1.3.6.1.4.1.40482.3.3'
PARSE_ALERT_ALERT_NAME = '1.3.6.1.4.1.40482.3.5'
PARSE_ALERT_DESCRIPTION = '1.3.6.1.4.1.40482.3.6'
PARSE_ALERT_SEVERITY = '1.3.6.1.4.1.40482.3.7'

PARSE_ALERT_SEVERITY_MAP = {'1': constants.Severity.WARNING,
'2': constants.Severity.INFORMATIONAL}
Loading