community.network.ce_lacp – Manages Eth-Trunk interfaces on HUAWEI CloudEngine switches¶
This plugin is part of the community.network collection (version 1.3.2).
To install it use:
ansible-galaxy collection install community.network.
To use it in a playbook, specify:
New in version 0.2.0: of community.network
state=absentremoves the Eth-Trunk config and interface if it already exists. If members to be removed are not explicitly passed, all existing members (if any), are removed, and Eth-Trunk removed.
This module requires the netconf system service be enabled on the remote device being managed.
Recommended connection is
This module also works with
localconnections for legacy playbooks.
- name: Ensure Eth-Trunk100 is created, and set to mode lacp-static community.network.ce_lacp: trunk_id: 100 mode: 'lacp-static' state: present - name: Ensure Eth-Trunk100 is created, add two members, and set global priority to 1231 community.network.ce_lacp: trunk_id: 100 global_priority: 1231 state: present - name: Ensure Eth-Trunk100 is created, and set mode to Dynamic and configure other options community.network.ce_lacp: trunk_id: 100 mode: Dynamic preempt_enable: True, state_flapping: True, port_id_extension_enable: True, unexpected_mac_disable: True, timeout_type: Fast, fast_timeout: 123, mixed_rate_link_enable: True, preempt_delay: 23, collector_delay: 33, state: present
Common return values are documented here, the following are the fields unique to this module: