1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Document descriptions updated to match UCS Manager online help. (#34581)

kwargs variable argument setup simplified.
This commit is contained in:
David Soper 2018-01-08 11:39:23 -06:00 committed by Dag Wieers
parent 788010d0f0
commit dc85176512

View file

@ -27,48 +27,64 @@ options:
default: present default: present
name: name:
description: description:
- Name of the vHBA template - The name of the virtual HBA template.
- This name can be between 1 and 16 alphanumeric characters.
- "You cannot use spaces or any special characters other than - (hyphen), \"_\" (underscore), : (colon), and . (period)."
- You cannot change this name after the template is created.
required: yes required: yes
description: description:
description: description:
- Description for the vHBA template - A user-defined description of the template.
- Enter up to 256 characters.
- "You can use any characters or spaces except the following:"
- "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)."
aliases: [ descr ] aliases: [ descr ]
fabric: fabric:
description: description:
- Fabric ID - The Fabric ID field.
- The name of the fabric interconnect that vHBAs created with this template are associated with.
choices: [A, B] choices: [A, B]
default: A default: A
redundancy_type: redundancy_type:
description: description:
- Redundancy Type - The Redundancy Type used for template pairing from the Primary or Secondary redundancy template.
- "primary — Creates configurations that can be shared with the Secondary template."
- Any other shared changes on the Primary template are automatically synchronized to the Secondary template.
- "secondary — All shared configurations are inherited from the Primary template."
- "none - Legacy vHBA template behavior. Select this option if you do not want to use redundancy."
choices: [none, primary, secondary] choices: [none, primary, secondary]
default: none default: none
vsan: vsan:
description: description:
- VSAN name - The VSAN to associate with vHBAs created from this template.
default: default default: default
template_type: template_type:
description: description:
- Template Type - The Template Type field.
- "This can be one of the following:"
- "initial-template — vHBAs created from this template are not updated if the template changes."
- "updating-template - vHBAs created from this template are updated if the template changes."
choices: [initial-template, updating-template] choices: [initial-template, updating-template]
default: initial-template default: initial-template
max_data: max_data:
description: description:
- Max Data Field Size - The Max Data Field Size field.
- The maximum size of the Fibre Channel frame payload bytes that the vHBA supports.
- Enter an string between '256' and '2112'.
default: '2048' default: '2048'
wwpn_pool: wwpn_pool:
description: description:
- WWPN Pool name - The WWPN pool that a vHBA created from this template uses to derive its WWPN address.
default: default default: default
qos_policy: qos_policy:
description: description:
- QoS Policy name - The QoS policy that is associated with vHBAs created from this template.
pin_group: pin_group:
description: description:
- Pin Group - The SAN pin group that is associated with vHBAs created from this template.
stats_policy: stats_policy:
description: description:
- Stats Threshold Policy name - The statistics collection policy that is associated with vHBAs created from this template.
default: default default: default
org_dn: org_dn:
description: description:
@ -192,8 +208,7 @@ def main():
if mo: if mo:
mo_exists = True mo_exists = True
# check top-level mo props # check top-level mo props
kwargs = {} kwargs = dict(descr=vhba_template['descr'])
kwargs['descr'] = vhba_template['descr']
kwargs['switch_id'] = vhba_template['fabric'] kwargs['switch_id'] = vhba_template['fabric']
kwargs['redundancy_pair_type'] = vhba_template['redundancy_type'] kwargs['redundancy_pair_type'] = vhba_template['redundancy_type']
kwargs['templ_type'] = vhba_template['template_type'] kwargs['templ_type'] = vhba_template['template_type']
@ -207,8 +222,7 @@ def main():
child_dn = dn + '/if-default' child_dn = dn + '/if-default'
mo_1 = ucs.login_handle.query_dn(child_dn) mo_1 = ucs.login_handle.query_dn(child_dn)
if mo_1: if mo_1:
kwargs = {} kwargs = dict(name=vhba_template['vsan'])
kwargs['name'] = vhba_template['vsan']
if (mo_1.check_prop_match(**kwargs)): if (mo_1.check_prop_match(**kwargs)):
props_match = True props_match = True