-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportchannel.yml
35 lines (29 loc) · 982 Bytes
/
portchannel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- name: Example for Configuration of Portchannels
hosts: test2
gather_facts: no
connection: local
tasks:
- name: ensure these interfaces are bridged
comware_interface: name={{ item }} type=bridged username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
with_items:
- Ten-GigabitEthernet1/0/3
- Ten-GigabitEthernet1/0/4
- Ten-GigabitEthernet1/0/5
- Ten-GigabitEthernet1/0/6
- comware_portchannel:
group: 100
members:
- Ten-GigabitEthernet1/0/3
- Ten-GigabitEthernet1/0/4
- Ten-GigabitEthernet1/0/5
- Ten-GigabitEthernet1/0/6
type: bridged
mode: dynamic
lacp_mode: active
min_ports: 2
max_ports: 4
username: "{{ username }}"
password: "{{ password }}"
hostname: "{{ inventory_hostname }}"
state: present