# 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

auto mgmt
iface mgmt
    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
    bond-mode 802.3ad
    bond-lacp-bypass-allow no

auto peerlink.4094
iface peerlink.4094
    clagd-peer-ip linklocal
    clagd-priority 42
    clagd-backup-ip 192.168.10.1 vrf mgmt
    clagd-sys-mac 00:42:98:33:49:10
    clagd-args --initDelay 90
    clagd-debug on

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

auto peerlink2.4094
iface peerlink2.4094
    clagd-peer-ip linklocal
    clagd-priority 42
    clagd-backup-ip 192.168.10.1 vrf mgmt
    clagd-sys-mac 00:42:98:33:49:10
    clagd-args --initDelay 90
    clagd-debug on

auto peerlink2.209
iface peerlink2.209
    vrf BLUE

auto bond0
iface bond0
    bond-slaves swp42
    bond-mode 802.3ad
    bond-lacp-bypass-allow no
    clag-id 46960

auto hostbond1
iface hostbond1
    bond-slaves swp43
    bond-mode 802.3ad
    bond-lacp-bypass-allow no
    clag-id 1

auto br_default
iface br_default
    bridge-ports peerlink2 peerlink
    bridge-vlan-aware yes
    bridge-vids 1
    bridge-pvid 1
