/
os-refimpl-devices.cfg.j2
89 lines (76 loc) · 1.97 KB
/
os-refimpl-devices.cfg.j2
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
# VLAN TAGS
# 430 - MANAGEMENT_NET - 172.19.100.0/22
# 431 - STORAGE_NET - 172.19.104.0/22
# 432 - OVERLAY_NET - 172.19.108.0/22
# 433 - FLAT_NET - 172.19.112.0/22
auto p4p1
iface p4p1 inet manual
auto p1p2
iface p1p2 inet manual
bond-master bond0
bond-primary p1p2
auto p4p2
iface p4p2 inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond-slaves none
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
auto p4p1.433
iface p4p1.433 inet manual
vlan-raw-device p4p1
iface bond0.430 inet manual
vlan-raw-device bond0
iface bond0.431 inet manual
vlan-raw-device bond0
iface bond0.432 inet manual
vlan-raw-device bond0
auto br-tftp
iface br-tftp inet static
bridge_stp off
bridge_waitport 10
bridge_fd 0
# Plugin the br-pxe veth pair to wire the tftp network
# This is only required on a device constrained environment
# In normal deployment situations this veth would not exist and
# would be replaced by an actual network.
bridge_ports br-pxe-eth
address 172.19.1.{{ ansible_ssh_host.split('.')[-1] }}
netmask 255.255.252.0
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 10
bridge_fd 0
bridge_ports bond0.430
address 172.19.100.{{ ansible_ssh_host.split('.')[-1] }}
netmask 255.255.252.0
offload-sg off
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 10
bridge_fd 0
bridge_ports bond0.431
address 172.19.104.{{ ansible_ssh_host.split('.')[-1] }}
netmask 255.255.252.0
offload-sg off
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 10
bridge_fd 0
bridge_ports bond0.432
address 172.19.108.{{ ansible_ssh_host.split('.')[-1] }}
netmask 255.255.252.0
offload-sg off
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 10
bridge_fd 0
bridge_ports bond0
offload-sg off