Minor bug fixes - 6 (#61464)

This commit is contained in:
Miguel Angel Muñoz González 2019-08-28 20:00:23 +02:00 committed by Nilashish Chakraborty
parent 35c0782b50
commit b47a291d43
42 changed files with 680 additions and 100 deletions

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
name: name:
description: description:
- Name. - Name.
@ -227,7 +240,12 @@ def underscore_to_hyphen(data):
def user_adgrp(data, fos): def user_adgrp(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['user_adgrp'] and data['user_adgrp']:
state = data['user_adgrp']['state']
else:
state = True
user_adgrp_data = data['user_adgrp'] user_adgrp_data = data['user_adgrp']
filtered_data = underscore_to_hyphen(filter_user_adgrp_data(user_adgrp_data)) filtered_data = underscore_to_hyphen(filter_user_adgrp_data(user_adgrp_data))
@ -267,11 +285,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"user_adgrp": { "user_adgrp": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"name": {"required": True, "type": "str"}, "name": {"required": True, "type": "str"},
"server_name": {"required": False, "type": "str"} "server_name": {"required": False, "type": "str"}

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
accounting_server: accounting_server:
description: description:
- Additional accounting servers. - Additional accounting servers.
@ -589,7 +602,12 @@ def underscore_to_hyphen(data):
def user_radius(data, fos): def user_radius(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['user_radius'] and data['user_radius']:
state = data['user_radius']['state']
else:
state = True
user_radius_data = data['user_radius'] user_radius_data = data['user_radius']
filtered_data = underscore_to_hyphen(filter_user_radius_data(user_radius_data)) filtered_data = underscore_to_hyphen(filter_user_radius_data(user_radius_data))
@ -629,11 +647,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"user_radius": { "user_radius": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"accounting_server": {"required": False, "type": "list", "accounting_server": {"required": False, "type": "list",
"options": { "options": {
"id": {"required": True, "type": "int"}, "id": {"required": True, "type": "int"},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
authen_type: authen_type:
description: description:
- Allowed authentication protocols/methods. - Allowed authentication protocols/methods.
@ -284,7 +297,12 @@ def underscore_to_hyphen(data):
def user_tacacsplus(data, fos): def user_tacacsplus(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['user_tacacsplus'] and data['user_tacacsplus']:
state = data['user_tacacsplus']['state']
else:
state = True
user_tacacsplus_data = data['user_tacacsplus'] user_tacacsplus_data = data['user_tacacsplus']
filtered_data = underscore_to_hyphen(filter_user_tacacsplus_data(user_tacacsplus_data)) filtered_data = underscore_to_hyphen(filter_user_tacacsplus_data(user_tacacsplus_data))
@ -324,11 +342,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"user_tacacsplus": { "user_tacacsplus": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"authen_type": {"required": False, "type": "str", "authen_type": {"required": False, "type": "str",
"choices": ["mschap", "chap", "pap", "choices": ["mschap", "chap", "pap",
"ascii", "auto"]}, "ascii", "auto"]},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
comment: comment:
description: description:
- Comment. - Comment.
@ -1018,7 +1031,12 @@ def underscore_to_hyphen(data):
def voip_profile(data, fos): def voip_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['voip_profile'] and data['voip_profile']:
state = data['voip_profile']['state']
else:
state = True
voip_profile_data = data['voip_profile'] voip_profile_data = data['voip_profile']
filtered_data = underscore_to_hyphen(filter_voip_profile_data(voip_profile_data)) filtered_data = underscore_to_hyphen(filter_voip_profile_data(voip_profile_data))
@ -1058,11 +1076,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"voip_profile": { "voip_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},
"name": {"required": True, "type": "str"}, "name": {"required": True, "type": "str"},
"sccp": {"required": False, "type": "dict", "sccp": {"required": False, "type": "dict",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
member: member:
description: description:
- Names of up to 3 VPN tunnels to add to the concentrator. - Names of up to 3 VPN tunnels to add to the concentrator.
@ -243,7 +256,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_concentrator(data, fos): def vpn_ipsec_concentrator(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_concentrator'] and data['vpn_ipsec_concentrator']:
state = data['vpn_ipsec_concentrator']['state']
else:
state = True
vpn_ipsec_concentrator_data = data['vpn_ipsec_concentrator'] vpn_ipsec_concentrator_data = data['vpn_ipsec_concentrator']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_concentrator_data(vpn_ipsec_concentrator_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_concentrator_data(vpn_ipsec_concentrator_data))
@ -283,11 +301,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_concentrator": { "vpn_ipsec_concentrator": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"member": {"required": False, "type": "list", "member": {"required": False, "type": "list",
"options": { "options": {
"name": {"required": True, "type": "str"} "name": {"required": True, "type": "str"}

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
phase2name: phase2name:
description: description:
- Phase 2 tunnel name that you defined in the FortiClient dialup configuration. Source vpn.ipsec.phase2.name vpn.ipsec.phase2-interface - Phase 2 tunnel name that you defined in the FortiClient dialup configuration. Source vpn.ipsec.phase2.name vpn.ipsec.phase2-interface
@ -242,7 +255,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_forticlient(data, fos): def vpn_ipsec_forticlient(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_forticlient'] and data['vpn_ipsec_forticlient']:
state = data['vpn_ipsec_forticlient']['state']
else:
state = True
vpn_ipsec_forticlient_data = data['vpn_ipsec_forticlient'] vpn_ipsec_forticlient_data = data['vpn_ipsec_forticlient']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_forticlient_data(vpn_ipsec_forticlient_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_forticlient_data(vpn_ipsec_forticlient_data))
@ -282,11 +300,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_forticlient": { "vpn_ipsec_forticlient": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"phase2name": {"required": False, "type": "str"}, "phase2name": {"required": False, "type": "str"},
"realm": {"required": True, "type": "str"}, "realm": {"required": True, "type": "str"},
"status": {"required": False, "type": "str", "status": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
authentication: authentication:
description: description:
- Authentication algorithm. Must be the same for both ends of the tunnel. - Authentication algorithm. Must be the same for both ends of the tunnel.
@ -280,7 +293,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_manualkey(data, fos): def vpn_ipsec_manualkey(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_manualkey'] and data['vpn_ipsec_manualkey']:
state = data['vpn_ipsec_manualkey']['state']
else:
state = True
vpn_ipsec_manualkey_data = data['vpn_ipsec_manualkey'] vpn_ipsec_manualkey_data = data['vpn_ipsec_manualkey']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_manualkey_data(vpn_ipsec_manualkey_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_manualkey_data(vpn_ipsec_manualkey_data))
@ -320,11 +338,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_manualkey": { "vpn_ipsec_manualkey": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"authentication": {"required": False, "type": "str", "authentication": {"required": False, "type": "str",
"choices": ["null", "md5", "sha1", "choices": ["null", "md5", "sha1",
"sha256", "sha384", "sha512"]}, "sha256", "sha384", "sha512"]},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
addr_type: addr_type:
description: description:
- IP version to use for IP packets. - IP version to use for IP packets.
@ -307,7 +320,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_manualkey_interface(data, fos): def vpn_ipsec_manualkey_interface(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_manualkey_interface'] and data['vpn_ipsec_manualkey_interface']:
state = data['vpn_ipsec_manualkey_interface']['state']
else:
state = True
vpn_ipsec_manualkey_interface_data = data['vpn_ipsec_manualkey_interface'] vpn_ipsec_manualkey_interface_data = data['vpn_ipsec_manualkey_interface']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_manualkey_interface_data(vpn_ipsec_manualkey_interface_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_manualkey_interface_data(vpn_ipsec_manualkey_interface_data))
@ -347,11 +365,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_manualkey_interface": { "vpn_ipsec_manualkey_interface": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"addr_type": {"required": False, "type": "str", "addr_type": {"required": False, "type": "str",
"choices": ["4", "6"]}, "choices": ["4", "6"]},
"auth_alg": {"required": False, "type": "str", "auth_alg": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
acct_verify: acct_verify:
description: description:
- Enable/disable verification of RADIUS accounting record. - Enable/disable verification of RADIUS accounting record.
@ -983,7 +996,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_phase1(data, fos): def vpn_ipsec_phase1(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_phase1'] and data['vpn_ipsec_phase1']:
state = data['vpn_ipsec_phase1']['state']
else:
state = True
vpn_ipsec_phase1_data = data['vpn_ipsec_phase1'] vpn_ipsec_phase1_data = data['vpn_ipsec_phase1']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase1_data(vpn_ipsec_phase1_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase1_data(vpn_ipsec_phase1_data))
@ -1023,11 +1041,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_phase1": { "vpn_ipsec_phase1": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"acct_verify": {"required": False, "type": "str", "acct_verify": {"required": False, "type": "str",
"choices": ["enable", "disable"]}, "choices": ["enable", "disable"]},
"add_gw_route": {"required": False, "type": "str", "add_gw_route": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
acct_verify: acct_verify:
description: description:
- Enable/disable verification of RADIUS accounting record. - Enable/disable verification of RADIUS accounting record.
@ -1175,7 +1188,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_phase1_interface(data, fos): def vpn_ipsec_phase1_interface(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_phase1_interface'] and data['vpn_ipsec_phase1_interface']:
state = data['vpn_ipsec_phase1_interface']['state']
else:
state = True
vpn_ipsec_phase1_interface_data = data['vpn_ipsec_phase1_interface'] vpn_ipsec_phase1_interface_data = data['vpn_ipsec_phase1_interface']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase1_interface_data(vpn_ipsec_phase1_interface_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase1_interface_data(vpn_ipsec_phase1_interface_data))
@ -1215,11 +1233,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_phase1_interface": { "vpn_ipsec_phase1_interface": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"acct_verify": {"required": False, "type": "str", "acct_verify": {"required": False, "type": "str",
"choices": ["enable", "disable"]}, "choices": ["enable", "disable"]},
"add_gw_route": {"required": False, "type": "str", "add_gw_route": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
add_route: add_route:
description: description:
- Enable/disable automatic route addition. - Enable/disable automatic route addition.
@ -517,7 +530,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_phase2(data, fos): def vpn_ipsec_phase2(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_phase2'] and data['vpn_ipsec_phase2']:
state = data['vpn_ipsec_phase2']['state']
else:
state = True
vpn_ipsec_phase2_data = data['vpn_ipsec_phase2'] vpn_ipsec_phase2_data = data['vpn_ipsec_phase2']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase2_data(vpn_ipsec_phase2_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase2_data(vpn_ipsec_phase2_data))
@ -557,11 +575,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_phase2": { "vpn_ipsec_phase2": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"add_route": {"required": False, "type": "str", "add_route": {"required": False, "type": "str",
"choices": ["phase1", "enable", "disable"]}, "choices": ["phase1", "enable", "disable"]},
"auto_negotiate": {"required": False, "type": "str", "auto_negotiate": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
add_route: add_route:
description: description:
- Enable/disable automatic route addition. - Enable/disable automatic route addition.
@ -526,7 +539,12 @@ def underscore_to_hyphen(data):
def vpn_ipsec_phase2_interface(data, fos): def vpn_ipsec_phase2_interface(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ipsec_phase2_interface'] and data['vpn_ipsec_phase2_interface']:
state = data['vpn_ipsec_phase2_interface']['state']
else:
state = True
vpn_ipsec_phase2_interface_data = data['vpn_ipsec_phase2_interface'] vpn_ipsec_phase2_interface_data = data['vpn_ipsec_phase2_interface']
filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase2_interface_data(vpn_ipsec_phase2_interface_data)) filtered_data = underscore_to_hyphen(filter_vpn_ipsec_phase2_interface_data(vpn_ipsec_phase2_interface_data))
@ -566,11 +584,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ipsec_phase2_interface": { "vpn_ipsec_phase2_interface": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"add_route": {"required": False, "type": "str", "add_route": {"required": False, "type": "str",
"choices": ["phase1", "enable", "disable"]}, "choices": ["phase1", "enable", "disable"]},
"auto_discovery_forwarder": {"required": False, "type": "str", "auto_discovery_forwarder": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
allow_user_access: allow_user_access:
description: description:
- Allow user access to SSL-VPN applications. - Allow user access to SSL-VPN applications.
@ -964,7 +977,12 @@ def underscore_to_hyphen(data):
def vpn_ssl_web_portal(data, fos): def vpn_ssl_web_portal(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['vpn_ssl_web_portal'] and data['vpn_ssl_web_portal']:
state = data['vpn_ssl_web_portal']['state']
else:
state = True
vpn_ssl_web_portal_data = data['vpn_ssl_web_portal'] vpn_ssl_web_portal_data = data['vpn_ssl_web_portal']
filtered_data = underscore_to_hyphen(filter_vpn_ssl_web_portal_data(vpn_ssl_web_portal_data)) filtered_data = underscore_to_hyphen(filter_vpn_ssl_web_portal_data(vpn_ssl_web_portal_data))
@ -1004,11 +1022,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"vpn_ssl_web_portal": { "vpn_ssl_web_portal": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"allow_user_access": {"required": False, "type": "str", "allow_user_access": {"required": False, "type": "str",
"choices": ["web", "ftp", "smb", "choices": ["web", "ftp", "smb",
"telnet", "ssh", "vnc", "telnet", "ssh", "vnc",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
address_list: address_list:
description: description:
- Black address list and white address list. - Black address list and white address list.
@ -1341,7 +1354,12 @@ def underscore_to_hyphen(data):
def waf_profile(data, fos): def waf_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['waf_profile'] and data['waf_profile']:
state = data['waf_profile']['state']
else:
state = True
waf_profile_data = data['waf_profile'] waf_profile_data = data['waf_profile']
filtered_data = underscore_to_hyphen(filter_waf_profile_data(waf_profile_data)) filtered_data = underscore_to_hyphen(filter_waf_profile_data(waf_profile_data))
@ -1381,11 +1399,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"waf_profile": { "waf_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"address_list": {"required": False, "type": "dict", "address_list": {"required": False, "type": "dict",
"options": { "options": {
"blocked_address": {"required": False, "type": "list", "blocked_address": {"required": False, "type": "list",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
auth_group: auth_group:
description: description:
- Optionally add an authentication group to restrict access to the WAN Optimization tunnel to peers in the authentication group. Source - Optionally add an authentication group to restrict access to the WAN Optimization tunnel to peers in the authentication group. Source
@ -589,7 +602,12 @@ def underscore_to_hyphen(data):
def wanopt_profile(data, fos): def wanopt_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wanopt_profile'] and data['wanopt_profile']:
state = data['wanopt_profile']['state']
else:
state = True
wanopt_profile_data = data['wanopt_profile'] wanopt_profile_data = data['wanopt_profile']
filtered_data = underscore_to_hyphen(filter_wanopt_profile_data(wanopt_profile_data)) filtered_data = underscore_to_hyphen(filter_wanopt_profile_data(wanopt_profile_data))
@ -629,11 +647,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wanopt_profile": { "wanopt_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"auth_group": {"required": False, "type": "str"}, "auth_group": {"required": False, "type": "str"},
"cifs": {"required": False, "type": "dict", "cifs": {"required": False, "type": "dict",
"options": { "options": {

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
header_client_ip: header_client_ip:
description: description:
- "Action to take on the HTTP client-IP header in forwarded requests: forwards (pass), adds, or removes the HTTP header." - "Action to take on the HTTP client-IP header in forwarded requests: forwards (pass), adds, or removes the HTTP header."
@ -337,7 +350,12 @@ def underscore_to_hyphen(data):
def web_proxy_profile(data, fos): def web_proxy_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['web_proxy_profile'] and data['web_proxy_profile']:
state = data['web_proxy_profile']['state']
else:
state = True
web_proxy_profile_data = data['web_proxy_profile'] web_proxy_profile_data = data['web_proxy_profile']
filtered_data = underscore_to_hyphen(filter_web_proxy_profile_data(web_proxy_profile_data)) filtered_data = underscore_to_hyphen(filter_web_proxy_profile_data(web_proxy_profile_data))
@ -377,11 +395,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"web_proxy_profile": { "web_proxy_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"header_client_ip": {"required": False, "type": "str", "header_client_ip": {"required": False, "type": "str",
"choices": ["pass", "add", "remove"]}, "choices": ["pass", "add", "remove"]},
"header_front_end_https": {"required": False, "type": "str", "header_front_end_https": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
comment: comment:
description: description:
- Optional comments. - Optional comments.
@ -290,7 +303,12 @@ def underscore_to_hyphen(data):
def webfilter_content(data, fos): def webfilter_content(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_content'] and data['webfilter_content']:
state = data['webfilter_content']['state']
else:
state = True
webfilter_content_data = data['webfilter_content'] webfilter_content_data = data['webfilter_content']
filtered_data = underscore_to_hyphen(filter_webfilter_content_data(webfilter_content_data)) filtered_data = underscore_to_hyphen(filter_webfilter_content_data(webfilter_content_data))
@ -330,11 +348,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_content": { "webfilter_content": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},
"entries": {"required": False, "type": "list", "entries": {"required": False, "type": "list",
"options": { "options": {

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
comment: comment:
description: description:
- Optional comments. - Optional comments.
@ -260,7 +273,12 @@ def underscore_to_hyphen(data):
def webfilter_content_header(data, fos): def webfilter_content_header(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_content_header'] and data['webfilter_content_header']:
state = data['webfilter_content_header']['state']
else:
state = True
webfilter_content_header_data = data['webfilter_content_header'] webfilter_content_header_data = data['webfilter_content_header']
filtered_data = underscore_to_hyphen(filter_webfilter_content_header_data(webfilter_content_header_data)) filtered_data = underscore_to_hyphen(filter_webfilter_content_header_data(webfilter_content_header_data))
@ -300,11 +318,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_content_header": { "webfilter_content_header": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},
"entries": {"required": False, "type": "list", "entries": {"required": False, "type": "list",
"options": { "options": {

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
desc: desc:
description: description:
- Local category description. - Local category description.
@ -235,7 +248,12 @@ def underscore_to_hyphen(data):
def webfilter_ftgd_local_cat(data, fos): def webfilter_ftgd_local_cat(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_ftgd_local_cat'] and data['webfilter_ftgd_local_cat']:
state = data['webfilter_ftgd_local_cat']['state']
else:
state = True
webfilter_ftgd_local_cat_data = data['webfilter_ftgd_local_cat'] webfilter_ftgd_local_cat_data = data['webfilter_ftgd_local_cat']
filtered_data = underscore_to_hyphen(filter_webfilter_ftgd_local_cat_data(webfilter_ftgd_local_cat_data)) filtered_data = underscore_to_hyphen(filter_webfilter_ftgd_local_cat_data(webfilter_ftgd_local_cat_data))
@ -275,11 +293,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_ftgd_local_cat": { "webfilter_ftgd_local_cat": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"desc": {"required": True, "type": "str"}, "desc": {"required": True, "type": "str"},
"id": {"required": False, "type": "int"}, "id": {"required": False, "type": "int"},
"status": {"required": False, "type": "str", "status": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
rating: rating:
description: description:
- Local rating. - Local rating.
@ -235,7 +248,12 @@ def underscore_to_hyphen(data):
def webfilter_ftgd_local_rating(data, fos): def webfilter_ftgd_local_rating(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_ftgd_local_rating'] and data['webfilter_ftgd_local_rating']:
state = data['webfilter_ftgd_local_rating']['state']
else:
state = True
webfilter_ftgd_local_rating_data = data['webfilter_ftgd_local_rating'] webfilter_ftgd_local_rating_data = data['webfilter_ftgd_local_rating']
filtered_data = underscore_to_hyphen(filter_webfilter_ftgd_local_rating_data(webfilter_ftgd_local_rating_data)) filtered_data = underscore_to_hyphen(filter_webfilter_ftgd_local_rating_data(webfilter_ftgd_local_rating_data))
@ -275,11 +293,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_ftgd_local_rating": { "webfilter_ftgd_local_rating": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"rating": {"required": False, "type": "str"}, "rating": {"required": False, "type": "str"},
"status": {"required": False, "type": "str", "status": {"required": False, "type": "str",
"choices": ["enable", "disable"]}, "choices": ["enable", "disable"]},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
expires: expires:
description: description:
- "Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss)." - "Override expiration date and time, from 5 minutes to 365 from now (format: yyyy/mm/dd hh:mm:ss)."
@ -283,7 +296,12 @@ def underscore_to_hyphen(data):
def webfilter_override(data, fos): def webfilter_override(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_override'] and data['webfilter_override']:
state = data['webfilter_override']['state']
else:
state = True
webfilter_override_data = data['webfilter_override'] webfilter_override_data = data['webfilter_override']
filtered_data = underscore_to_hyphen(filter_webfilter_override_data(webfilter_override_data)) filtered_data = underscore_to_hyphen(filter_webfilter_override_data(webfilter_override_data))
@ -323,11 +341,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_override": { "webfilter_override": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"expires": {"required": False, "type": "str"}, "expires": {"required": False, "type": "str"},
"id": {"required": True, "type": "int"}, "id": {"required": True, "type": "int"},
"initiator": {"required": False, "type": "str"}, "initiator": {"required": False, "type": "str"},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
comment: comment:
description: description:
- Optional comments. - Optional comments.
@ -874,7 +887,12 @@ def underscore_to_hyphen(data):
def webfilter_profile(data, fos): def webfilter_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_profile'] and data['webfilter_profile']:
state = data['webfilter_profile']['state']
else:
state = True
webfilter_profile_data = data['webfilter_profile'] webfilter_profile_data = data['webfilter_profile']
filtered_data = underscore_to_hyphen(filter_webfilter_profile_data(webfilter_profile_data)) filtered_data = underscore_to_hyphen(filter_webfilter_profile_data(webfilter_profile_data))
@ -914,11 +932,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_profile": { "webfilter_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},
"extended_log": {"required": False, "type": "str", "extended_log": {"required": False, "type": "str",
"choices": ["enable", "disable"]}, "choices": ["enable", "disable"]},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
charset: charset:
description: description:
- Search engine charset. - Search engine charset.
@ -261,7 +274,12 @@ def underscore_to_hyphen(data):
def webfilter_search_engine(data, fos): def webfilter_search_engine(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_search_engine'] and data['webfilter_search_engine']:
state = data['webfilter_search_engine']['state']
else:
state = True
webfilter_search_engine_data = data['webfilter_search_engine'] webfilter_search_engine_data = data['webfilter_search_engine']
filtered_data = underscore_to_hyphen(filter_webfilter_search_engine_data(webfilter_search_engine_data)) filtered_data = underscore_to_hyphen(filter_webfilter_search_engine_data(webfilter_search_engine_data))
@ -301,11 +319,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_search_engine": { "webfilter_search_engine": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"charset": {"required": False, "type": "str", "charset": {"required": False, "type": "str",
"choices": ["utf-8", "gb2312"]}, "choices": ["utf-8", "gb2312"]},
"hostname": {"required": False, "type": "str"}, "hostname": {"required": False, "type": "str"},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
comment: comment:
description: description:
- Optional comments. - Optional comments.
@ -327,7 +340,12 @@ def underscore_to_hyphen(data):
def webfilter_urlfilter(data, fos): def webfilter_urlfilter(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['webfilter_urlfilter'] and data['webfilter_urlfilter']:
state = data['webfilter_urlfilter']['state']
else:
state = True
webfilter_urlfilter_data = data['webfilter_urlfilter'] webfilter_urlfilter_data = data['webfilter_urlfilter']
filtered_data = underscore_to_hyphen(filter_webfilter_urlfilter_data(webfilter_urlfilter_data)) filtered_data = underscore_to_hyphen(filter_webfilter_urlfilter_data(webfilter_urlfilter_data))
@ -367,11 +385,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"webfilter_urlfilter": { "webfilter_urlfilter": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},
"entries": {"required": False, "type": "list", "entries": {"required": False, "type": "list",
"options": { "options": {

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and anqp_3gpp_cellular category. user to set and modify wireless_controller_hotspot20 feature and anqp_3gpp_cellular category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and anqp_ip_address_type category. user to set and modify wireless_controller_hotspot20 feature and anqp_ip_address_type category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and anqp_network_auth_type category. user to set and modify wireless_controller_hotspot20 feature and anqp_network_auth_type category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and anqp_roaming_consortium category. user to set and modify wireless_controller_hotspot20 feature and anqp_roaming_consortium category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and anqp_venue_name category. user to set and modify wireless_controller_hotspot20 feature and anqp_venue_name category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and h2qp_conn_capability category. user to set and modify wireless_controller_hotspot20 feature and h2qp_conn_capability category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and h2qp_operator_name category. user to set and modify wireless_controller_hotspot20 feature and h2qp_operator_name category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and h2qp_osu_provider category. user to set and modify wireless_controller_hotspot20 feature and h2qp_osu_provider category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and h2qp_wan_metric category. user to set and modify wireless_controller_hotspot20 feature and h2qp_wan_metric category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and icon category. user to set and modify wireless_controller_hotspot20 feature and icon category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller_hotspot20 feature and qos_map category. user to set and modify wireless_controller_hotspot20 feature and qos_map category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller feature and inter_controller category. user to set and modify wireless_controller feature and inter_controller category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify wireless_controller feature and qos_profile category. user to set and modify wireless_controller feature and qos_profile category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
antivirus_profile: antivirus_profile:
description: description:
- AntiVirus profile name. Source antivirus.profile.name. - AntiVirus profile name. Source antivirus.profile.name.
@ -266,7 +279,12 @@ def underscore_to_hyphen(data):
def wireless_controller_utm_profile(data, fos): def wireless_controller_utm_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wireless_controller_utm_profile'] and data['wireless_controller_utm_profile']:
state = data['wireless_controller_utm_profile']['state']
else:
state = True
wireless_controller_utm_profile_data = data['wireless_controller_utm_profile'] wireless_controller_utm_profile_data = data['wireless_controller_utm_profile']
filtered_data = underscore_to_hyphen(filter_wireless_controller_utm_profile_data(wireless_controller_utm_profile_data)) filtered_data = underscore_to_hyphen(filter_wireless_controller_utm_profile_data(wireless_controller_utm_profile_data))
@ -306,11 +324,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wireless_controller_utm_profile": { "wireless_controller_utm_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"antivirus_profile": {"required": False, "type": "str"}, "antivirus_profile": {"required": False, "type": "str"},
"application_list": {"required": False, "type": "str"}, "application_list": {"required": False, "type": "str"},
"comment": {"required": False, "type": "str"}, "comment": {"required": False, "type": "str"},

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
acct_interim_interval: acct_interim_interval:
description: description:
- WiFi RADIUS accounting interim interval (60 - 86400 sec). - WiFi RADIUS accounting interim interval (60 - 86400 sec).
@ -1152,7 +1165,12 @@ def underscore_to_hyphen(data):
def wireless_controller_vap(data, fos): def wireless_controller_vap(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wireless_controller_vap'] and data['wireless_controller_vap']:
state = data['wireless_controller_vap']['state']
else:
state = True
wireless_controller_vap_data = data['wireless_controller_vap'] wireless_controller_vap_data = data['wireless_controller_vap']
filtered_data = underscore_to_hyphen(filter_wireless_controller_vap_data(wireless_controller_vap_data)) filtered_data = underscore_to_hyphen(filter_wireless_controller_vap_data(wireless_controller_vap_data))
@ -1192,11 +1210,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wireless_controller_vap": { "wireless_controller_vap": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"acct_interim_interval": {"required": False, "type": "int"}, "acct_interim_interval": {"required": False, "type": "int"},
"alias": {"required": False, "type": "str"}, "alias": {"required": False, "type": "str"},
"auth": {"required": False, "type": "str", "auth": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
ap_auto_suppress: ap_auto_suppress:
description: description:
- Enable/disable on-wire rogue AP auto-suppression . - Enable/disable on-wire rogue AP auto-suppression .
@ -547,7 +560,12 @@ def underscore_to_hyphen(data):
def wireless_controller_wids_profile(data, fos): def wireless_controller_wids_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wireless_controller_wids_profile'] and data['wireless_controller_wids_profile']:
state = data['wireless_controller_wids_profile']['state']
else:
state = True
wireless_controller_wids_profile_data = data['wireless_controller_wids_profile'] wireless_controller_wids_profile_data = data['wireless_controller_wids_profile']
filtered_data = underscore_to_hyphen(filter_wireless_controller_wids_profile_data(wireless_controller_wids_profile_data)) filtered_data = underscore_to_hyphen(filter_wireless_controller_wids_profile_data(wireless_controller_wids_profile_data))
@ -587,11 +605,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wireless_controller_wids_profile": { "wireless_controller_wids_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"ap_auto_suppress": {"required": False, "type": "str", "ap_auto_suppress": {"required": False, "type": "str",
"choices": ["enable", "disable"]}, "choices": ["enable", "disable"]},
"ap_bgscan_disable_day": {"required": False, "type": "str", "ap_bgscan_disable_day": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
admin: admin:
description: description:
- Configure how the FortiGate operating as a wireless controller discovers and manages this WTP, AP or FortiAP. - Configure how the FortiGate operating as a wireless controller discovers and manages this WTP, AP or FortiAP.
@ -881,7 +894,12 @@ def underscore_to_hyphen(data):
def wireless_controller_wtp(data, fos): def wireless_controller_wtp(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wireless_controller_wtp'] and data['wireless_controller_wtp']:
state = data['wireless_controller_wtp']['state']
else:
state = True
wireless_controller_wtp_data = data['wireless_controller_wtp'] wireless_controller_wtp_data = data['wireless_controller_wtp']
filtered_data = underscore_to_hyphen(filter_wireless_controller_wtp_data(wireless_controller_wtp_data)) filtered_data = underscore_to_hyphen(filter_wireless_controller_wtp_data(wireless_controller_wtp_data))
@ -921,11 +939,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wireless_controller_wtp": { "wireless_controller_wtp": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"admin": {"required": False, "type": "str", "admin": {"required": False, "type": "str",
"choices": ["discovered", "disable", "enable"]}, "choices": ["discovered", "disable", "enable"]},
"allowaccess": {"required": False, "type": "str", "allowaccess": {"required": False, "type": "str",

View file

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
allowaccess: allowaccess:
description: description:
- Control management access to the managed WTP, FortiAP, or AP. Separate entries with a space. - Control management access to the managed WTP, FortiAP, or AP. Separate entries with a space.
@ -1575,7 +1588,12 @@ def underscore_to_hyphen(data):
def wireless_controller_wtp_profile(data, fos): def wireless_controller_wtp_profile(data, fos):
vdom = data['vdom'] vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state'] state = data['state']
elif 'state' in data['wireless_controller_wtp_profile'] and data['wireless_controller_wtp_profile']:
state = data['wireless_controller_wtp_profile']['state']
else:
state = True
wireless_controller_wtp_profile_data = data['wireless_controller_wtp_profile'] wireless_controller_wtp_profile_data = data['wireless_controller_wtp_profile']
filtered_data = underscore_to_hyphen(filter_wireless_controller_wtp_profile_data(wireless_controller_wtp_profile_data)) filtered_data = underscore_to_hyphen(filter_wireless_controller_wtp_profile_data(wireless_controller_wtp_profile_data))
@ -1615,11 +1633,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"wireless_controller_wtp_profile": { "wireless_controller_wtp_profile": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"allowaccess": {"required": False, "type": "str", "allowaccess": {"required": False, "type": "str",
"choices": ["telnet", "http", "https", "choices": ["telnet", "http", "https",
"ssh"]}, "ssh"]},