When true it forces Eth-Trunk members to match what is declared in the members param. This can be used to remove members.
hash_type
-
Choices:
src-dst-ip
src-dst-mac
enhanced
dst-ip
dst-mac
src-ip
src-mac
Hash algorithm used for load balancing among Eth-Trunk member interfaces.
members
-
List of interfaces that will be managed in a given Eth-Trunk. The interface name must be full name.
min_links
-
Specifies the minimum number of Eth-Trunk member links in the Up state. The value is an integer ranging from 1 to the maximum number of interfaces that can be added to a Eth-Trunk interface.
mode
-
Choices:
manual
lacp-dynamic
lacp-static
Specifies the working mode of an Eth-Trunk interface.
state
-
Choices:
present ←
absent
Manage the state of the resource.
trunk_id
-
/ required
Eth-Trunk interface number. The value is an integer. The value range depends on the assign forward eth-trunk mode command. When 256 is specified, the value ranges from 0 to 255. When 512 is specified, the value ranges from 0 to 511. When 1024 is specified, the value ranges from 0 to 1023.
state=absent removes 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.
Members must be a list.
This module requires the netconf system service be enabled on the remote device being managed.
Recommended connection is netconf.
This module also works with local connections for legacy playbooks.
-name:eth_trunk module testhosts:cloudengineconnection:localgather_facts:novars:cli:host:"{{inventory_hostname}}"port:"{{ansible_ssh_port}}"username:"{{username}}"password:"{{password}}"transport:clitasks:-name:Ensure Eth-Trunk100 is created, add two members, and set to mode lacp-staticce_eth_trunk:trunk_id:100members:['10GE1/0/24','10GE1/0/25']mode:'lacp-static'state:presentprovider:'{{cli}}'