# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto enp0s4
iface enp0s4 inet manual

auto br-ex
iface br-ex inet static
	ovs_type OVSBridge
	ovs_ports enp0s4
	address 192.168.101.131
	network 192.168.101.0
	netmask 255.255.255.0
	broadcast 192.168.101.255
	gateway 192.168.101.1

	up ovs-vsctl add-port br-ex enp0s4 || true
	up ovs-vsctl set bridge br-ex other-config:hwaddr=08:00:27:06:cc:c5 || true

# Set this one last, so that cloud-init or user can
# override defaults.
source /etc/network/interfaces.d/*

