# 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 swp1
iface swp1
    mstpctl-port-vlan-path-cost 42=42
    mstpctl-port-vlan-priority 42=240

auto br_default
iface br_default
    bridge-ports swp1
    bridge-vlan-aware yes
    bridge-vids 40 41 42
    bridge-pvid 1
    bridge-stp yes
    mstpctl-pvrst-mode yes
    bridge-stp-vlan-priority 40-42=4096
    bridge-stp-vlan-hello 40-42=10
    bridge-stp-vlan-fdelay 40-42=30
    bridge-stp-vlan-maxage 40-42=6
