# 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
	metric 4278198272

auto enp0s4.10
iface enp0s4.10 inet manual

auto enp0s4.20
iface enp0s4.20 inet manual

auto ovnvrf42
iface ovnvrf42 inet manual
	pre-up ip link add ovnvrf42 type vrf table 42
	up ip link set ovnvrf42 up
	post-down ip link del ovnvrf42

auto br-bgp0
iface br-bgp0 inet manual
	ovs_type OVSBridge
	ovs_ports enp0s4.20
	up ovs-vsctl add-port br-bgp0 enp0s4.20 || true
	up ip link set br-bgp0 master ovnvrf42
	down ip link set br-bgp0 nomaster

auto br-ex
iface br-ex inet manual
	ovs_type OVSBridge
	ovs_ports lo


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

