blob: 8178f92194cff830d28223e61019673a0c5bccba (
plain)
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
|
---
- debug: msg="START vyos cli/net_linkagg.yaml on connection={{ ansible_connection
}}"
- name: Remove linkagg - set
ansible.netcommon.net_linkagg:
name: bond0
state: absent
- name: Create linkagg using platform agnostic module
register: result
ansible.netcommon.net_linkagg:
name: bond0
members:
- eth1
state: present
- assert:
that:
- result.changed == true
- '"set interfaces bonding bond0 mode 802.3ad" in result.commands'
- '"set interfaces ethernet eth1 bond-group bond0" in result.commands'
- name: Remove linkagg - teardown
ansible.netcommon.net_linkagg:
name: bond0
state: absent
- debug: msg="END vyos cli/net_linkagg.yaml on connection={{ ansible_connection
}}"
|