:source: fortios_router_multicast.py
:orphan:
.. fortios_router_multicast:
fortios_router_multicast -- Configure router multicast in Fortinet's FortiOS and FortiGate.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 2.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify router feature and multicast category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
Tips
----
Using member operation to add an element to an existing object.
FortiOS Version Compatibility
-----------------------------
Supported Version Ranges: v6.0.0 -> v7.6.6
Parameters
----------
.. raw:: html
- access_token - Token-based authentication. Generated from GUI of Fortigate. type: str required: false
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- vdom - Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. type: str default: root
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- router_multicast - Configure router multicast. type: dict
more...
| Supported Version Ranges |
| router_multicast |
v6.0.0 -> 7.6.6 |
- interface - PIM interfaces. type: list member_path: interface:name
more...
| Supported Version Ranges |
| interface |
v6.0.0 -> 7.6.6 |
- bfd - Enable/disable Protocol Independent Multicast (PIM) Bidirectional Forwarding Detection (BFD). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| bfd |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- cisco_exclude_genid - Exclude GenID from hello packets (compatibility with old Cisco IOS). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| cisco_exclude_genid |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- dr_priority - DR election priority. type: int
more...
|
Supported Version Ranges |
| dr_priority |
v6.0.0 -> 7.6.6 |
- hello_holdtime - Time before old neighbor information expires (0 - 65535 sec). type: int
more...
|
Supported Version Ranges |
| hello_holdtime |
v6.0.0 -> 7.6.6 |
- hello_interval - Interval between sending PIM hello messages (0 - 65535 sec). type: int
more...
|
Supported Version Ranges |
| hello_interval |
v6.0.0 -> 7.6.6 |
- igmp - IGMP configuration options. type: dict
more...
| Supported Version Ranges |
| igmp |
v6.0.0 -> 7.6.6 |
- access_group - Groups IGMP hosts are allowed to join. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| access_group |
v6.0.0 -> 7.6.6 |
- immediate_leave_group - Groups to drop membership for immediately after receiving IGMPv2 leave. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| immediate_leave_group |
v6.0.0 -> 7.6.6 |
- last_member_query_count - Number of group specific queries before removing group (2 - 7). type: int
more...
|
Supported Version Ranges |
| last_member_query_count |
v6.0.0 -> 7.6.6 |
- last_member_query_interval - Timeout between IGMPv2 leave and removing group (1 - 65535 msec). type: int
more...
|
Supported Version Ranges |
| last_member_query_interval |
v6.0.0 -> 7.6.6 |
- query_interval - Interval between queries to IGMP hosts (1 - 65535 sec). type: int
more...
|
Supported Version Ranges |
| query_interval |
v6.0.0 -> 7.6.6 |
- query_max_response_time - Maximum time to wait for a IGMP query response (1 - 25 sec). type: int
more...
|
Supported Version Ranges |
| query_max_response_time |
v6.0.0 -> 7.6.6 |
- query_timeout - Timeout between queries before becoming querying unit for network (60 - 900). type: int
more...
|
Supported Version Ranges |
| query_timeout |
v6.0.0 -> 7.6.6 |
- router_alert_check - Enable/disable require IGMP packets contain router alert option. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| router_alert_check |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- version - Maximum version of IGMP to support. type: str choices: 3, 2, 1
more...
|
Supported Version Ranges |
| version |
v6.0.0 -> 7.6.6 |
| [3] |
v6.0.0 -> 7.6.6 |
| [2] |
v6.0.0 -> 7.6.6 |
| [1] |
v6.0.0 -> 7.6.6 |
- join_group - Join multicast groups. type: list member_path: interface:name/join_group:address
more...
| Supported Version Ranges |
| join_group |
v6.0.0 -> 7.6.6 |
- address - Multicast group IP address. type: str required: true
more...
|
Supported Version Ranges |
| address |
v6.0.0 -> 7.6.6 |
- multicast_flow - Acceptable source for multicast group. Source router.multicast-flow.name. type: str
more...
|
Supported Version Ranges |
| multicast_flow |
v6.0.0 -> 7.6.6 |
- name - Interface name. Source system.interface.name. type: str required: true
more...
|
Supported Version Ranges |
| name |
v6.0.0 -> 7.6.6 |
- neighbour_filter - Routers acknowledged as neighbor routers. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| neighbour_filter |
v6.0.0 -> 7.6.6 |
- passive - Enable/disable listening to IGMP but not participating in PIM. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| passive |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- pim_mode - PIM operation mode. type: str choices: sparse-mode, dense-mode
more...
|
Supported Version Ranges |
| pim_mode |
v6.0.0 -> 7.6.6 |
| [sparse-mode] |
v6.0.0 -> 7.6.6 |
| [dense-mode] |
v6.0.0 -> 7.6.6 |
- propagation_delay - Delay flooding packets on this interface (100 - 5000 msec). type: int
more...
|
Supported Version Ranges |
| propagation_delay |
v6.0.0 -> 7.6.6 |
- rp_candidate - Enable/disable compete to become RP in elections. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| rp_candidate |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- rp_candidate_group - Multicast groups managed by this RP. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| rp_candidate_group |
v6.0.0 -> 7.6.6 |
- rp_candidate_interval - RP candidate advertisement interval (1 - 16383 sec). type: int
more...
|
Supported Version Ranges |
| rp_candidate_interval |
v6.0.0 -> 7.6.6 |
- rp_candidate_priority - Router"s priority as RP. type: int
more...
|
Supported Version Ranges |
| rp_candidate_priority |
v6.0.0 -> 7.6.6 |
- rpf_nbr_fail_back - Enable/disable fail back for RPF neighbor query. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| rpf_nbr_fail_back |
v6.2.0 -> 7.6.6 |
| [enable] |
v6.2.0 -> 7.6.6 |
| [disable] |
v6.2.0 -> 7.6.6 |
- rpf_nbr_fail_back_filter - Filter for fail back RPF neighbors. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| rpf_nbr_fail_back_filter |
v6.2.0 -> 7.6.6 |
- state_refresh_interval - Interval between sending state-refresh packets (1 - 100 sec). type: int
more...
|
Supported Version Ranges |
| state_refresh_interval |
v6.0.0 -> 7.6.6 |
- static_group - Statically set multicast groups to forward out. Source router.multicast-flow.name. type: str
more...
|
Supported Version Ranges |
| static_group |
v6.0.0 -> 7.6.6 |
- ttl_threshold - Minimum TTL of multicast packets that will be forwarded (applied only to new multicast routes) (1 - 255). type: int
more...
|
Supported Version Ranges |
| ttl_threshold |
v6.0.0 -> 7.6.6 |
- multicast_routing - Enable/disable IP multicast routing. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| multicast_routing |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- pim_sm_global - PIM sparse-mode global settings. type: dict
more...
| Supported Version Ranges |
| pim_sm_global |
v6.0.0 -> 7.6.6 |
- accept_register_list - Sources allowed to register packets with this Rendezvous Point (RP). Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| accept_register_list |
v6.0.0 -> 7.6.6 |
- accept_source_list - Sources allowed to send multicast traffic. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| accept_source_list |
v6.0.0 -> 7.6.6 |
- bsr_allow_quick_refresh - Enable/disable accept BSR quick refresh packets from neighbors. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| bsr_allow_quick_refresh |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- bsr_candidate - Enable/disable allowing this router to become a bootstrap router (BSR). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| bsr_candidate |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- bsr_hash - BSR hash length (0 - 32). type: int
more...
|
Supported Version Ranges |
| bsr_hash |
v6.0.0 -> 7.6.6 |
- bsr_interface - Interface to advertise as candidate BSR. Source system.interface.name. type: str
more...
|
Supported Version Ranges |
| bsr_interface |
v6.0.0 -> 7.6.6 |
- bsr_priority - BSR priority (0 - 255). type: int
more...
|
Supported Version Ranges |
| bsr_priority |
v6.0.0 -> 7.6.6 |
- cisco_crp_prefix - Enable/disable making candidate RP compatible with old Cisco IOS. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| cisco_crp_prefix |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- cisco_ignore_rp_set_priority - Use only hash for RP selection (compatibility with old Cisco IOS). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| cisco_ignore_rp_set_priority |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- cisco_register_checksum - Checksum entire register packet(for old Cisco IOS compatibility). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| cisco_register_checksum |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- cisco_register_checksum_group - Cisco register checksum only these groups. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| cisco_register_checksum_group |
v6.0.0 -> 7.6.6 |
- join_prune_holdtime - Join/prune holdtime (1 - 65535). type: int
more...
|
Supported Version Ranges |
| join_prune_holdtime |
v6.0.0 -> 7.6.6 |
- message_interval - Period of time between sending periodic PIM join/prune messages in seconds (1 - 65535). type: int
more...
|
Supported Version Ranges |
| message_interval |
v6.0.0 -> 7.6.6 |
- null_register_retries - Maximum retries of null register (1 - 20). type: int
more...
|
Supported Version Ranges |
| null_register_retries |
v6.0.0 -> 7.6.6 |
- pim_use_sdwan - Enable/disable use of SDWAN when checking RPF neighbor and sending of REG packet. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| pim_use_sdwan |
v7.4.0 -> 7.6.6 |
| [enable] |
v7.4.0 -> 7.6.6 |
| [disable] |
v7.4.0 -> 7.6.6 |
- register_rate_limit - Limit of packets/sec per source registered through this RP (0 - 65535). type: int
more...
|
Supported Version Ranges |
| register_rate_limit |
v6.0.0 -> 7.6.6 |
- register_rp_reachability - Enable/disable check RP is reachable before registering packets. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| register_rp_reachability |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- register_source - Override source address in register packets. type: str choices: disable, interface, ip-address
more...
|
Supported Version Ranges |
| register_source |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
| [interface] |
v6.0.0 -> 7.6.6 |
| [ip-address] |
v6.0.0 -> 7.6.6 |
- register_source_interface - Override with primary interface address. Source system.interface.name. type: str
more...
|
Supported Version Ranges |
| register_source_interface |
v6.0.0 -> 7.6.6 |
- register_source_ip - Override with local IP address. type: str
more...
|
Supported Version Ranges |
| register_source_ip |
v6.0.0 -> 7.6.6 |
- register_supression - Period of time to honor register-stop message (1 - 65535 sec). type: int
more...
|
Supported Version Ranges |
| register_supression |
v6.0.0 -> 7.6.6 |
- rp_address - Statically configure RP addresses. type: list member_path: pim_sm_global/rp_address:id
more...
| Supported Version Ranges |
| rp_address |
v6.0.0 -> 7.6.6 |
- group - Groups to use this RP. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| group |
v6.0.0 -> 7.6.6 |
- id - ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v6.0.0 -> 7.6.6 |
- ip_address - RP router address. type: str
more...
|
Supported Version Ranges |
| ip_address |
v6.0.0 -> 7.6.6 |
- rp_register_keepalive - Timeout for RP receiving data on (S,G) tree (1 - 65535 sec). type: int
more...
|
Supported Version Ranges |
| rp_register_keepalive |
v6.0.0 -> 7.6.6 |
- spt_threshold - Enable/disable switching to source specific trees. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| spt_threshold |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- spt_threshold_group - Groups allowed to switch to source tree. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| spt_threshold_group |
v6.0.0 -> 7.6.6 |
- ssm - Enable/disable source specific multicast. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| ssm |
v6.0.0 -> 7.6.6 |
| [enable] |
v6.0.0 -> 7.6.6 |
| [disable] |
v6.0.0 -> 7.6.6 |
- ssm_range - Groups allowed to source specific multicast. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| ssm_range |
v6.0.0 -> 7.6.6 |
- pim_sm_global_vrf - per-VRF PIM sparse-mode global settings. type: list member_path: pim_sm_global_vrf:vrf
more...
| Supported Version Ranges |
| pim_sm_global_vrf |
v7.6.1 -> 7.6.6 |
- bsr_allow_quick_refresh - Enable/disable accept BSR quick refresh packets from neighbors. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| bsr_allow_quick_refresh |
v7.6.1 -> 7.6.6 |
| [enable] |
v7.6.1 -> 7.6.6 |
| [disable] |
v7.6.1 -> 7.6.6 |
- bsr_candidate - Enable/disable allowing this router to become a bootstrap router (BSR). type: str choices: enable, disable
more...
|
Supported Version Ranges |
| bsr_candidate |
v7.6.1 -> 7.6.6 |
| [enable] |
v7.6.1 -> 7.6.6 |
| [disable] |
v7.6.1 -> 7.6.6 |
- bsr_hash - BSR hash length (0 - 32). type: int
more...
|
Supported Version Ranges |
| bsr_hash |
v7.6.1 -> 7.6.6 |
- bsr_interface - Interface to advertise as candidate BSR. Source system.interface.name. type: str
more...
|
Supported Version Ranges |
| bsr_interface |
v7.6.1 -> 7.6.6 |
- bsr_priority - BSR priority (0 - 255). type: int
more...
|
Supported Version Ranges |
| bsr_priority |
v7.6.1 -> 7.6.6 |
- cisco_crp_prefix - Enable/disable making candidate RP compatible with old Cisco IOS. type: str choices: enable, disable
more...
|
Supported Version Ranges |
| cisco_crp_prefix |
v7.6.1 -> 7.6.6 |
| [enable] |
v7.6.1 -> 7.6.6 |
| [disable] |
v7.6.1 -> 7.6.6 |
- rp_address - Statically configure RP addresses. type: list member_path: pim_sm_global_vrf:vrf/rp_address:id
more...
| Supported Version Ranges |
| rp_address |
v7.6.1 -> 7.6.6 |
- group - Groups to use this RP. Source router.access-list.name. type: str
more...
|
Supported Version Ranges |
| group |
v7.6.1 -> 7.6.6 |
- id - ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| id |
v7.6.1 -> 7.6.6 |
- ip_address - RP router address. type: str
more...
|
Supported Version Ranges |
| ip_address |
v7.6.1 -> 7.6.6 |
- vrf - VRF ID. see Notes. type: int required: true
more...
|
Supported Version Ranges |
| vrf |
v7.6.1 -> 7.6.6 |
- route_limit - Maximum number of multicast routes. type: int
more...
|
Supported Version Ranges |
| route_limit |
v6.0.0 -> 7.6.6 |
- route_threshold - Generate warnings when the number of multicast routes exceeds this number, must not be greater than route-limit. type: int
more...
|
Supported Version Ranges |
| route_threshold |
v6.0.0 -> 7.6.6 |
Notes
-----
.. note::
- Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
- The module supports check_mode.
Examples
--------
.. code-block:: yaml+jinja
- name: Configure router multicast.
fortinet.fortios.fortios_router_multicast:
vdom: "{{ vdom }}"
router_multicast:
interface:
-
bfd: "enable"
cisco_exclude_genid: "enable"
dr_priority: "1"
hello_holdtime: "105"
hello_interval: "30"
igmp:
access_group: " (source router.access-list.name)"
immediate_leave_group: " (source router.access-list.name)"
last_member_query_count: "2"
last_member_query_interval: "1000"
query_interval: "125"
query_max_response_time: "10"
query_timeout: "255"
router_alert_check: "enable"
version: "3"
join_group:
-
address: ""
multicast_flow: " (source router.multicast-flow.name)"
name: "default_name_22 (source system.interface.name)"
neighbour_filter: " (source router.access-list.name)"
passive: "enable"
pim_mode: "sparse-mode"
propagation_delay: "500"
rp_candidate: "enable"
rp_candidate_group: " (source router.access-list.name)"
rp_candidate_interval: "60"
rp_candidate_priority: "192"
rpf_nbr_fail_back: "enable"
rpf_nbr_fail_back_filter: " (source router.access-list.name)"
state_refresh_interval: "60"
static_group: " (source router.multicast-flow.name)"
ttl_threshold: "1"
multicast_routing: "enable"
pim_sm_global:
accept_register_list: " (source router.access-list.name)"
accept_source_list: " (source router.access-list.name)"
bsr_allow_quick_refresh: "enable"
bsr_candidate: "enable"
bsr_hash: "10"
bsr_interface: " (source system.interface.name)"
bsr_priority: "0"
cisco_crp_prefix: "enable"
cisco_ignore_rp_set_priority: "enable"
cisco_register_checksum: "enable"
cisco_register_checksum_group: " (source router.access-list.name)"
join_prune_holdtime: "210"
message_interval: "60"
null_register_retries: "1"
pim_use_sdwan: "enable"
register_rate_limit: "0"
register_rp_reachability: "enable"
register_source: "disable"
register_source_interface: " (source system.interface.name)"
register_source_ip: ""
register_supression: "60"
rp_address:
-
group: " (source router.access-list.name)"
id: "61"
ip_address: ""
rp_register_keepalive: "185"
spt_threshold: "enable"
spt_threshold_group: " (source router.access-list.name)"
ssm: "enable"
ssm_range: " (source router.access-list.name)"
pim_sm_global_vrf:
-
bsr_allow_quick_refresh: "enable"
bsr_candidate: "enable"
bsr_hash: "10"
bsr_interface: " (source system.interface.name)"
bsr_priority: "0"
cisco_crp_prefix: "enable"
rp_address:
-
group: " (source router.access-list.name)"
id: "77"
ip_address: ""
vrf: ""
route_limit: "2147483647"
route_threshold: ""
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
- build - Build number of the fortigate image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiGate returned: always type: str sample: PUT
- http_status - Last result given by FortiGate on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiGate returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- revision - Internal revision number returned: always type: str sample: 17.0.2.10658
- serial - Serial number of the unit returned: always type: str sample: FGVMEVYYQT3AB5352
- status - Indication of the operation's result returned: always type: str sample: success
- vdom - Virtual domain used returned: always type: str sample: root
- version - Version of the FortiGate returned: always type: str sample: v5.6.3
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
.. hint::
If you notice any issues in this documentation, you can create a pull request to improve it.