community.network.ce_multicast_global module – Manages multicast global configuration on HUAWEI CloudEngine switches.
Note
This module is part of the community.network collection (version 3.3.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.ce_multicast_global
.
New in version 0.2.0: of community.network
Parameters
Parameter |
Comments |
---|---|
Destination ip address family type of static route. Choices:
|
|
Specify desired state of the resource. Choices:
|
|
VPN instance of destination ip address. |
Notes
Note
If no vrf is supplied, vrf is set to default.
If state=absent, the route will be removed, regardless of the non-required parameters.
This module requires the netconf system service be enabled on the remote device being managed.
This module works with connection
netconf
.
Examples
---
- name: Multicast routing-enable
community.network.ce_multicast_global:
aftype: v4
state: absent
provider: "{{ cli }}"
- name: Multicast routing-enable
community.network.ce_multicast_global:
aftype: v4
state: present
provider: "{{ cli }}"
- name: Multicast routing-enable
community.network.ce_multicast_global:
aftype: v4
vrf: vrf1
provider: "{{ cli }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
check to see if a change was made on the device Returned: always Sample: true |
|
k/v pairs of switchport after module execution Returned: always Sample: {“addressFamily”: “ipv4unicast”, “state”: “present”, “vrfName”: “_public_”} |
|
k/v pairs of existing switchport Returned: always Sample: {} |
|
k/v pairs of parameters passed into module Returned: always Sample: {“addressFamily”: “ipv4unicast”, “state”: “present”, “vrfName”: “_public_”} |
|
command list sent to the device Returned: always Sample: [“multicast routing-enable”] |
Authors
xuxiaowei0512 (@xuxiaowei0512)