# 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 1.1.1.1/32
    vxlan-local-tunnelip 1.1.1.1

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

auto sym_2
iface sym_2
    vrf-table auto

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

auto swp1
iface swp1

auto vxlan48
iface vxlan48
    bridge-vlan-vni-map 10=10
    bridge-learning off

auto vlan1999_l3
iface vlan1999_l3
    vrf sym_2
    vlan-raw-device br_l3vni
    vlan-id 1999

auto vxlan99
iface vxlan99
    bridge-vlan-vni-map 1999=1000
    bridge-learning off

auto br_default
iface br_default
    bridge-ports swp1 vxlan48
    hwaddress 08:00:27:60:36:0b
    bridge-vlan-aware yes
    bridge-vids 10
    bridge-pvid 1

auto br_l3vni
iface br_l3vni
    bridge-ports vxlan99
    hwaddress 08:00:27:60:36:0b
    bridge-vlan-aware yes
