mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Misc fixes to bigip modules. (#44594)
Adding docs, formatting docs, adding validation checks and values
This commit is contained in:
parent
2787bda0fa
commit
05920b92d6
5 changed files with 18 additions and 10 deletions
|
@ -285,6 +285,11 @@ class ModuleManager(object):
|
||||||
pass
|
pass
|
||||||
elif status == 'In Sync':
|
elif status == 'In Sync':
|
||||||
return
|
return
|
||||||
|
elif status == 'Disconnected':
|
||||||
|
raise F5ModuleError(
|
||||||
|
"One or more devices are unreachable (disconnected). "
|
||||||
|
"Resolve any communication problems before attempting to sync."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
raise F5ModuleError(status)
|
raise F5ModuleError(status)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ DOCUMENTATION = r'''
|
||||||
module: bigip_device_dns
|
module: bigip_device_dns
|
||||||
short_description: Manage BIG-IP device DNS settings
|
short_description: Manage BIG-IP device DNS settings
|
||||||
description:
|
description:
|
||||||
- Manage BIG-IP device DNS settings
|
- Manage BIG-IP device DNS settings.
|
||||||
version_added: 2.2
|
version_added: 2.2
|
||||||
options:
|
options:
|
||||||
cache:
|
cache:
|
||||||
|
|
|
@ -36,7 +36,7 @@ options:
|
||||||
required: True
|
required: True
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- When C(present), ensures that the device group member.
|
- When C(present), ensures that the device group member exists.
|
||||||
- When C(absent), ensures the device group member is removed.
|
- When C(absent), ensures the device group member is removed.
|
||||||
default: present
|
default: present
|
||||||
choices:
|
choices:
|
||||||
|
|
|
@ -61,18 +61,20 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: License BIG-IP using a key
|
- name: License BIG-IP using a key
|
||||||
bigip_device_license:
|
bigip_device_license:
|
||||||
server: "lb.mydomain.com"
|
|
||||||
user: "admin"
|
|
||||||
password: "secret"
|
|
||||||
license_key: "XXXXX-XXXXX-XXXXX-XXXXX-XXXXXXX"
|
license_key: "XXXXX-XXXXX-XXXXX-XXXXX-XXXXXXX"
|
||||||
|
provider:
|
||||||
|
server: "lb.mydomain.com"
|
||||||
|
user: "admin"
|
||||||
|
password: "secret"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Remove the license from the system
|
- name: Remove the license from the system
|
||||||
bigip_device_license:
|
bigip_device_license:
|
||||||
server: "lb.mydomain.com"
|
|
||||||
user: "admin"
|
|
||||||
password: "secret"
|
|
||||||
state: "absent"
|
state: "absent"
|
||||||
|
provider:
|
||||||
|
server: "lb.mydomain.com"
|
||||||
|
user: "admin"
|
||||||
|
password: "secret"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Dynamic routing protocols for the system to use in the route domain.
|
- Dynamic routing protocols for the system to use in the route domain.
|
||||||
choices:
|
choices:
|
||||||
|
- none
|
||||||
- BFD
|
- BFD
|
||||||
- BGP
|
- BGP
|
||||||
- IS-IS
|
- IS-IS
|
||||||
|
@ -322,7 +323,7 @@ class ModuleParameters(Parameters):
|
||||||
def routing_protocol(self):
|
def routing_protocol(self):
|
||||||
if self._values['routing_protocol'] is None:
|
if self._values['routing_protocol'] is None:
|
||||||
return None
|
return None
|
||||||
if len(self._values['routing_protocol']) == 1 and self._values['routing_protocol'][0] == '':
|
if len(self._values['routing_protocol']) == 1 and self._values['routing_protocol'][0] in ['', 'none']:
|
||||||
return ''
|
return ''
|
||||||
return self._values['routing_protocol']
|
return self._values['routing_protocol']
|
||||||
|
|
||||||
|
@ -578,7 +579,7 @@ class ArgumentSpec(object):
|
||||||
vlans=dict(type='list'),
|
vlans=dict(type='list'),
|
||||||
routing_protocol=dict(
|
routing_protocol=dict(
|
||||||
type='list',
|
type='list',
|
||||||
choices=['BFD', 'BGP', 'IS-IS', 'OSPFv2', 'OSPFv3', 'PIM', 'RIP', 'RIPng']
|
choices=['BFD', 'BGP', 'IS-IS', 'OSPFv2', 'OSPFv3', 'PIM', 'RIP', 'RIPng', 'none']
|
||||||
),
|
),
|
||||||
bwc_policy=dict(),
|
bwc_policy=dict(),
|
||||||
connection_limit=dict(type='int'),
|
connection_limit=dict(type='int'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue