blob: 8726e399c27dfb1a6e643368ce8a7757dfce90b3 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
---
merged:
before:
- name: "bond0"
- name: "bond1"
commands:
- "set interfaces bonding bond0 hash-policy 'layer2'"
- "set interfaces bonding bond0 mode 'active-backup'"
- "set interfaces ethernet eth1 bond-group 'bond0'"
- "set interfaces bonding bond0 primary 'eth1'"
- "set interfaces bonding bond1 hash-policy 'layer2+3'"
- "set interfaces bonding bond1 mode 'active-backup'"
- "set interfaces ethernet eth2 bond-group 'bond1'"
- "set interfaces bonding bond1 primary 'eth2'"
after:
- name: "bond0"
hash_policy: "layer2"
members:
- member: eth1
mode: "active-backup"
primary: eth1
- name: "bond1"
hash_policy: "layer2+3"
members:
- member: eth2
mode: "active-backup"
primary: eth2
populate:
- name: "bond0"
hash_policy: "layer2"
members:
- member: eth1
mode: "active-backup"
primary: eth1
- name: "bond1"
hash_policy: "layer2+3"
members:
- member: eth2
mode: "active-backup"
primary: eth2
replaced:
commands:
- "delete interfaces bonding bond1 primary"
- "set interfaces bonding bond1 hash-policy 'layer2'"
- "set interfaces bonding bond1 mode '802.3ad'"
after:
- name: "bond0"
hash_policy: "layer2"
members:
- member: eth1
mode: "active-backup"
primary: eth1
- name: "bond1"
hash_policy: "layer2"
members:
- member: eth2
mode: "802.3ad"
overridden:
commands:
- "delete interfaces bonding bond0 hash-policy"
- "delete interfaces ethernet eth1 bond-group 'bond0'"
- "delete interfaces bonding bond0 mode"
- "delete interfaces bonding bond0 primary"
- "set interfaces bonding bond1 hash-policy 'layer2'"
after:
- name: "bond0"
- name: "bond1"
hash_policy: "layer2"
members:
- member: eth2
mode: "active-backup"
primary: eth2
deleted:
commands:
- "delete interfaces bonding bond0 hash-policy"
- "delete interfaces ethernet eth1 bond-group 'bond0'"
- "delete interfaces bonding bond0 mode"
- "delete interfaces bonding bond0 primary"
- "delete interfaces bonding bond1 hash-policy"
- "delete interfaces ethernet eth2 bond-group 'bond1'"
- "delete interfaces bonding bond1 mode"
- "delete interfaces bonding bond1 primary"
after:
- name: "bond0"
- name: "bond1"
round_trip:
after:
- name: "bond0"
hash_policy: "layer2+3"
members:
- member: eth1
mode: "802.3ad"
primary: eth1
- name: "bond1"
hash_policy: "layer2"
members:
- member: eth2
mode: "xor-hash"
primary: eth2
|