mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Add NetApp SolidFire volume module (#20732)
* Add NetApp SolidFire volume module * Make requested changes * Make requested changes * Set supports_check_mode to True * Make requested changes * Change new_account_id to account_id, 512emulation * Make requested changes * Add alias for enable512e * Move byte_map to utils and add exit message * Update description for ‘attributes’
This commit is contained in:
parent
5d9df86b42
commit
1ba47cdf2e
2 changed files with 356 additions and 0 deletions
|
@ -37,6 +37,20 @@ except:
|
|||
|
||||
|
||||
HAS_SF_SDK = False
|
||||
SF_BYTE_MAP = dict(
|
||||
# Management GUI displays 1024 ** 3 as 1.1 GB, thus use 1000.
|
||||
bytes=1,
|
||||
b=1,
|
||||
kb=1000,
|
||||
mb=1000 ** 2,
|
||||
gb=1000 ** 3,
|
||||
tb=1000 ** 4,
|
||||
pb=1000 ** 5,
|
||||
eb=1000 ** 6,
|
||||
zb=1000 ** 7,
|
||||
yb=1000 ** 8
|
||||
)
|
||||
|
||||
try:
|
||||
from solidfire.factory import ElementFactory
|
||||
from solidfire.custom.models import TimeIntervalFrequency
|
||||
|
@ -113,6 +127,7 @@ def eseries_host_argument_spec():
|
|||
))
|
||||
return argument_spec
|
||||
|
||||
|
||||
def request(url, data=None, headers=None, method='GET', use_proxy=True,
|
||||
force=False, last_mod_time=None, timeout=10, validate_certs=True,
|
||||
url_username=None, url_password=None, http_agent=None, force_basic_auth=True, ignore_errors=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue