community.network.ce_mlag_config – Manages MLAG configuration on HUAWEI CloudEngine switches.¶
Note
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: community.network.ce_mlag_config
.
Parameters¶
Notes¶
Note
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.
Examples¶
- name: Mlag config module test
hosts: cloudengine
connection: local
gather_facts: no
vars:
cli:
host: "{{ inventory_hostname }}"
port: "{{ ansible_ssh_port }}"
username: "{{ username }}"
password: "{{ password }}"
transport: cli
tasks:
- name: Create DFS Group id
community.network.ce_mlag_config:
dfs_group_id: 1
provider: "{{ cli }}"
- name: Set dfs-group priority
community.network.ce_mlag_config:
dfs_group_id: 1
priority_id: 3
state: present
provider: "{{ cli }}"
- name: Set pseudo nickname
community.network.ce_mlag_config:
dfs_group_id: 1
pseudo_nickname: 3
pseudo_priority: 130
state: present
provider: "{{ cli }}"
- name: Set ip
community.network.ce_mlag_config:
dfs_group_id: 1
ip_address: 11.1.1.2
vpn_instance_name: 6
provider: "{{ cli }}"
- name: Set peer link
community.network.ce_mlag_config:
eth_trunk_id: 3
peer_link_id: 2
state: present
provider: "{{ cli }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Li Yanfeng (@QijunPan)