blob: 1241763451fdc3fb6c2d489333937149d95d859a (
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
|
---
merged:
before:
- name: "eth0"
ipv4:
- address: "dhcp"
- name: "eth1"
- name: "eth2"
commands:
- "set interfaces ethernet eth1 address '192.0.2.10/24'"
- "set interfaces ethernet eth1 address '2001:db8::10/32'"
- "set interfaces ethernet eth2 address '198.51.100.10/24'"
- "set interfaces ethernet eth2 vif 101 address '198.51.100.130/25'"
- "set interfaces ethernet eth2 vif 101 address '2001:db8::20/32'"
after:
- name: "eth0"
ipv4:
- address: "dhcp"
- name: "eth1"
ipv4:
- address: "192.0.2.10/24"
ipv6:
- address: "2001:db8::10/32"
- name: "eth2"
ipv4:
- address: "198.51.100.10/24"
vifs:
- vlan_id: 101
ipv4:
- address: "198.51.100.130/25"
ipv6:
- address: "2001:db8::20/32"
populate:
- name: "eth1"
ipv4:
- address: "192.0.2.14/24"
- name: "eth2"
ipv4:
- address: "192.0.2.10/24"
- address: "192.0.2.11/24"
ipv6:
- address: "2001:db8::10/32"
- address: "2001:db8::12/32"
- name: "eth0"
ipv4:
- address: "dhcp"
replaced:
commands:
- "delete interfaces ethernet eth2 address '192.0.2.10/24'"
- "delete interfaces ethernet eth2 address '192.0.2.11/24'"
- "delete interfaces ethernet eth2 address '2001:db8::10/32'"
- "delete interfaces ethernet eth2 address '2001:db8::12/32'"
- "set interfaces ethernet eth2 address '2001:db8::11/32'"
- "delete interfaces ethernet eth1 address '192.0.2.14/24'"
- "set interfaces ethernet eth1 address '192.0.2.19/24'"
after:
- name: "eth2"
ipv6:
- address: "2001:db8::11/32"
- name: "eth1"
ipv4:
- address: "192.0.2.19/24"
- name: "eth0"
ipv4:
- address: "dhcp"
overridden:
commands:
- delete interfaces ethernet eth1 address '192.0.2.14/24'
- set interfaces ethernet eth1 address '192.0.2.15/24'
- delete interfaces ethernet eth2 address '192.0.2.10/24'
- delete interfaces ethernet eth2 address '192.0.2.11/24'
- delete interfaces ethernet eth2 address '2001:db8::10/32'
- delete interfaces ethernet eth2 address '2001:db8::12/32'
after:
- name: "eth0"
ipv4:
- address: "dhcp"
- name: "eth1"
ipv4:
- address: "192.0.2.15/24"
- name: "eth2"
deleted:
commands:
- delete interfaces ethernet eth1 address '192.0.2.14/24'
- delete interfaces ethernet eth2 address '192.0.2.10/24'
- delete interfaces ethernet eth2 address '192.0.2.11/24'
- delete interfaces ethernet eth2 address '2001:db8::10/32'
- delete interfaces ethernet eth2 address '2001:db8::12/32'
after:
- name: "eth0"
ipv4:
- address: "dhcp"
- name: "eth1"
- name: "eth2"
|