1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
4 # The loopback network interface
11 iface {{ interface }} inet manual
13 # Container/Host management VLAN interface
14 auto {{ interface }}.10
15 iface {{ interface }}.10 inet manual
16 vlan-raw-device {{ interface }}
18 # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
19 auto {{ interface }}.30
20 iface {{ interface }}.30 inet manual
21 vlan-raw-device {{ interface }}
23 # Storage network VLAN interface (optional)
24 auto {{ interface }}.20
25 iface {{ interface }}.20 inet manual
26 vlan-raw-device {{ interface }}
28 # Container/Host management bridge
30 iface br-mgmt inet static
34 bridge_ports {{ interface }}.10
35 address {{host_info[inventory_hostname].MGMT_IP}}
38 # compute1 VXLAN (tunnel/overlay) bridge config
40 iface br-vxlan inet static
44 bridge_ports {{ interface }}.30
45 address {{host_info[inventory_hostname].VXLAN_IP}}
48 # OpenStack Networking VLAN bridge
50 iface br-vlan inet static
54 bridge_ports {{ interface }}
55 address {{host_info[inventory_hostname].VLAN_IP}}
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
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
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}}
76 dns-nameserver 8.8.8.8 8.8.4.4
78 # compute1 Storage bridge
80 iface br-storage inet static
84 bridge_ports {{ interface }}.20
85 address {{host_info[inventory_hostname].STORAGE_IP}}