:source: fmgr_arrpprofile.py
:orphan:
.. _fmgr_arrpprofile:
fmgr_arrpprofile -- Configure WiFi Automatic Radio Resource Provisioning (ARRP) profiles.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.1.0
.. warning::
Starting in version 3.0.0, all input arguments will be named using the underscore naming convention (snake_case).
- Argument name before 3.0.0: ``var-name``, ``var name``, ``var.name``
- New argument name starting in 3.0.0: ``var_name``
FortiManager Ansible v2.4+ supports both previous argument name and new underscore name.
You will receive deprecation warnings if you keep using the previous argument name.
You can ignore the warning by setting deprecation_warnings=False in ansible.cfg.
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiManager device.
- Examples include all parameters and values need to be adjusted to data sources before usage.
- Tested with FortiManager v7.x.
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible-core>=2.16.0
FortiManager Version Compatibility
----------------------------------
.. raw:: html
Supported Version Ranges: v7.0.3 -> latest
Parameters
----------
.. raw:: html
- access_token -The token to access FortiManager without using username and password. type: str required: false
- bypass_validation - Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. type: bool required: false default: False
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- forticloud_access_token - Access token of forticloud managed API users, this option is available with FortiManager later than 6.4.0. type: str required: false
- proposed_method - The overridden method for the underlying Json RPC request. type: str required: false choices: set, update, add
- rc_succeeded - The rc codes list with which the conditions to succeed will be overriden. type: list required: false
- rc_failed - The rc codes list with which the conditions to fail will be overriden. type: list required: false
- state - The directive to create, update or delete an object type: str required: true choices: present, absent
- workspace_locking_adom - Acquire the workspace lock if FortiManager is running in workspace mode. type: str required: false choices: global, custom adom including root
- workspace_locking_timeout - The maximum time in seconds to wait for other users to release workspace lock. type: integer required: false default: 300
- revision_note - The change note that can be specified when an object is created or updated. type: string required: false
- adom - The parameter in requested url type: str required: true
- arrpprofile - Configure WiFi Automatic Radio Resource Provisioning type: dict
- comment Comment. type: str
more...
Supported Version Ranges: v7.0.3 -> latest
- darrp_optimize (Alias name: darrp-optimize) Time for running dynamic automatic radio resource provisioning (darrp) optimizations (0 - 86400 sec, default = 86400, 0 = disable). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- darrp_optimize_schedules (Alias name: darrp-optimize-schedules) Firewall schedules for darrp running time. type: list
more...
Supported Version Ranges: v7.0.3 -> latest
- include_dfs_channel (Alias name: include-dfs-channel) Enable/disable use of dfs channel in darrp channel selection phase 1 (default = disable). type: str choices: [no, disable, yes, enable]
more...
Supported Version Ranges: v7.0.3 -> latest
- include_weather_channel (Alias name: include-weather-channel) Enable/disable use of weather channel in darrp channel selection phase 1 (default = disable). type: str choices: [no, disable, yes, enable]
more...
Supported Version Ranges: v7.0.3 -> latest
- monitor_period (Alias name: monitor-period) Period in seconds to measure average transmit retries and receive errors (default = 300). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- name Wifi arrp profile name. type: str
more...
Supported Version Ranges: v7.0.3 -> latest
- override_darrp_optimize (Alias name: override-darrp-optimize) Enable to override setting darrp-optimize and darrp-optimize-schedules (default = disable). type: str choices: [disable, enable]
more...
Supported Version Ranges: v7.0.3 -> latest
- selection_period (Alias name: selection-period) Period in seconds to measure average channel load, noise floor, spectral rssi (default = 3600). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_ap (Alias name: threshold-ap) Threshold to reject channel in darrp channel selection phase 1 due to surrounding aps (0 - 500, default = 250). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_channel_load (Alias name: threshold-channel-load) Threshold in percentage to reject channel in darrp channel selection phase 1 due to channel load (0 - 100, default = 60). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_noise_floor (Alias name: threshold-noise-floor) Threshold in dbm to reject channel in darrp channel selection phase 1 due to noise floor (-95 to -20, default = -85). type: str
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_rx_errors (Alias name: threshold-rx-errors) Threshold in percentage for receive errors to trigger channel reselection in darrp monitor stage (0 - 100, default = 50). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_spectral_rssi (Alias name: threshold-spectral-rssi) Threshold in dbm to reject channel in darrp channel selection phase 1 due to spectral rssi (-95 to -20, default = -65). type: str
more...
Supported Version Ranges: v7.0.3 -> latest
- threshold_tx_retries (Alias name: threshold-tx-retries) Threshold in percentage for transmit retries to trigger channel reselection in darrp monitor stage (0 - 1000, default = 300). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_channel_load (Alias name: weight-channel-load) Weight in darrp channel score calculation for channel load (0 - 2000, default = 20). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_dfs_channel (Alias name: weight-dfs-channel) Weight in darrp channel score calculation for dfs channel (0 - 2000, default = 500). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_managed_ap (Alias name: weight-managed-ap) Weight in darrp channel score calculation for managed aps (0 - 2000, default = 50). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_noise_floor (Alias name: weight-noise-floor) Weight in darrp channel score calculation for noise floor (0 - 2000, default = 40). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_rogue_ap (Alias name: weight-rogue-ap) Weight in darrp channel score calculation for rogue aps (0 - 2000, default = 10). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_spectral_rssi (Alias name: weight-spectral-rssi) Weight in darrp channel score calculation for spectral rssi (0 - 2000, default = 40). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
- weight_weather_channel (Alias name: weight-weather-channel) Weight in darrp channel score calculation for weather channel (0 - 2000, default = 1000). type: int
more...
Supported Version Ranges: v7.0.3 -> latest
Notes
-----
.. note::
- Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
- To create or update an object, use state: present directive.
- To delete an object, use state: absent directive
- Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
--------
.. code-block:: yaml+jinja
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
gather_facts: false
tasks:
- name: Configure WiFi Automatic Radio Resource Provisioning
fortinet.fortimanager.fmgr_arrpprofile:
# workspace_locking_adom:
adom:
state: present #
arrpprofile:
name: "your value" # Required variable, string
# comment:
# darrp_optimize:
# darrp_optimize_schedules:
# include_dfs_channel:
# include_weather_channel:
# monitor_period:
# override_darrp_optimize:
# selection_period:
# threshold_ap:
# threshold_channel_load:
# threshold_noise_floor:
# threshold_rx_errors:
# threshold_spectral_rssi:
# threshold_tx_retries:
# weight_channel_load:
# weight_dfs_channel:
# weight_managed_ap:
# weight_noise_floor:
# weight_rogue_ap:
# weight_spectral_rssi:
# weight_weather_channel:
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- meta - The result of the request.returned: always type: dict
- request_url - The full url requested. returned: always type: str sample: /sys/login/user
- response_code - The status of api request. returned: always type: int sample: 0
- response_data - The data body of the api response. returned: optional type: list or dict
- response_message - The descriptive message of the api response. returned: always type: str sample: OK
- system_information - The information of the target system. returned: always type: dict
- rc - The status the request. returned: always type: int sample: 0
- version_check_warning - Warning if the parameters used in the playbook are not supported by the current FortiManager version. returned: if at least one parameter not supported by the current FortiManager version type: list
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Xinwei Du (@dux-fortinet)
- Xing Li (@lix-fortinet)
- Jie Xue (@JieX19)
- Link Zheng (@chillancezen)
- Frank Shen (@fshen01)
- Hongbin Lu (@fgtdev-hblu)