xci: Add main playbooks and files
[releng.git] / prototypes / xci / template / compute.interface.j2
1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
3
4 # The loopback network interface
5 auto lo
6 iface lo inet loopback
7
8
9 # Physical interface
10 auto ens3
11 iface ens3 inet manual
12
13 # Container/Host management VLAN interface
14 auto ens3.10
15 iface ens3.10 inet manual
16     vlan-raw-device ens3
17
18 # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
19 auto ens3.30
20 iface ens3.30 inet manual
21     vlan-raw-device ens3
22
23 # Storage network VLAN interface (optional)
24 auto ens3.20
25 iface ens3.20 inet manual
26     vlan-raw-device ens3
27
28 # Container/Host management bridge
29 auto br-mgmt
30 iface br-mgmt inet static
31     bridge_stp off
32     bridge_waitport 0
33     bridge_fd 0
34     bridge_ports ens3.10
35     address {{host_info[inventory_hostname].MGMT_IP}}
36     netmask 255.255.252.0
37
38 # compute1 VXLAN (tunnel/overlay) bridge config
39 auto br-vxlan
40 iface br-vxlan inet static
41     bridge_stp off
42     bridge_waitport 0
43     bridge_fd 0
44     bridge_ports ens3.30
45     address {{host_info[inventory_hostname].VXLAN_IP}}
46     netmask 255.255.252.0
47
48 # OpenStack Networking VLAN bridge
49 auto br-vlan
50 iface br-vlan inet static
51     bridge_stp off
52     bridge_waitport 0
53     bridge_fd 0
54     bridge_ports ens3
55     address {{host_info[inventory_hostname].VLAN_IP}}
56     netmask 255.255.255.0
57     gateway 192.168.122.1
58     offload-sg off
59     # Create veth pair, don't bomb if already exists
60     pre-up ip link add br-vlan-veth type veth peer name eth12 || true
61     # Set both ends UP
62     pre-up ip link set br-vlan-veth up
63     pre-up ip link set eth12 up
64     # Delete veth pair on DOWN
65     post-down ip link del br-vlan-veth || true
66     bridge_ports br-vlan-veth
67
68 # Add an additional address to br-vlan
69 iface br-vlan inet static
70     # Flat network default gateway
71     # -- This needs to exist somewhere for network reachability
72     # -- from the router namespace for floating IP paths.
73     # -- Putting this here is primarily for tempest to work.
74     address {{host_info[inventory_hostname].VLAN_IP_SECOND}}
75     netmask 255.255.252.0
76     dns-nameserver 8.8.8.8 8.8.4.4
77
78 # compute1 Storage bridge
79 auto br-storage
80 iface br-storage inet static
81     bridge_stp off
82     bridge_waitport 0
83     bridge_fd 0
84     bridge_ports ens3.20
85     address {{host_info[inventory_hostname].STORAGE_IP}}
86     netmask 255.255.252.0