# 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 ::1/128
    vrf-table auto

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

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

auto peerlink
iface peerlink
    bond-slaves swp1 swp2
    bond-mode 802.3ad
    bond-lacp-bypass-allow no

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

auto peerlink.4094
iface peerlink.4094
    clagd-peer-ip linklocal
    clagd-backup-ip 1.1.1.1
    clagd-sys-mac 11:22:33:44:55:66
    clagd-args --initDelay 180
    clagd-debug off

auto vni42
iface vni42
    bridge-access 42
    bridge-learning off
    vxlan-id 42

auto vni104001
iface vni104001
    bridge-access 4036
    bridge-learning off
    vxlan-id 104001

auto vlan4036_l3
iface vlan4036_l3
    vrf BLUE
    vlan-raw-device br1
    address-virtual 44:38:39:ff:00:01
    vlan-id 4036

auto br1
iface br1
    bridge-ports peerlink vni42 vni104001
    bridge-vlan-aware yes
    bridge-vids 42
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
