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

source /etc/network/interfaces.d/*.intf

auto lo
iface lo inet loopback
    address 10.0.0.11/32
    vxlan-local-tunnelip 10.0.0.11

auto mgmt
iface mgmt
    address 127.0.0.1/8
    address 127.0.1.1/8
    address ::1/128
    vrf-table auto

auto TENANT_A
iface TENANT_A
    address 127.0.0.1/8
    address 127.0.1.1/8
    address ::1/128
    vrf-table auto

auto TENANT_G
iface TENANT_G
    address 127.0.0.1/8
    address 127.0.1.1/8
    address ::1/128
    vrf-table auto

auto eth0
iface eth0 inet dhcp
    ip-forward off
    ip6-forward off
    vrf mgmt

auto bond1
iface bond1
    bond-slaves swp1
    bond-mode 802.3ad
    bond-lacp-bypass-allow no
    bridge-access 10

auto vlan10
iface vlan10
    address 192.168.10.1/24
    address-virtual 00:00:5e:00:01:01 192.168.10.254/24
    vrf TENANT_A
    vlan-raw-device br_default
    vlan-id 10

auto vni42
iface vni42
    mtu 8000
    bridge-access 42
    bridge-learning off
    vxlan-remoteip 52.0.0.52
    vxlan-id 42

auto vni100
iface vni100
    mtu 8000
    bridge-access 100
    bridge-learning off
    vxlan-remoteip 52.0.0.52
    vxlan-id 100

auto vni142
iface vni142
    mtu 8000
    bridge-access 142
    bridge-learning off
    vxlan-remoteip 42.0.0.42
    vxlan-id 142

auto vni200
iface vni200
    mtu 8000
    bridge-access 200
    bridge-learning off
    vxlan-remoteip 52.0.0.52
    vxlan-id 200

auto vni250
iface vni250
    mtu 8000
    bridge-access 250
    bridge-learning off
    vxlan-remoteip 22.0.0.22
    vxlan-remoteip 22.0.0.23
    vxlan-id 250

auto br_default
iface br_default
    bridge-ports bond1 vni42 vni100 vni142 vni200 vni250
    bridge-vlan-aware yes
    bridge-vids 42 100 142 200 250
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
    mstpctl-forcevers rstp
