# 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.92.240.127/32
    clagd-vxlan-anycast-ip 10.92.240.121
    vxlan-local-tunnelip 10.92.240.127

auto mgmt
iface mgmt
    address 127.0.0.1/8
    vrf-table auto

auto CLD
iface CLD
    address 10.92.246.31/32
    vrf-table auto

auto CMP
iface CMP
    address 10.92.244.31/32
    vrf-table auto

auto HRZ_MGT
iface HRZ_MGT
    address 10.106.31.247/32
    vrf-table auto

auto IAZ
iface IAZ
    address 10.104.31.247/32
    vrf-table auto

auto NCP
iface NCP
    address 10.92.240.127/32
    vrf-table auto

auto eth0
iface eth0
    address 10.0.11.8/26
    gateway 10.0.11.1
    mtu 1500
    ip-forward off
    ip6-forward off
    vrf mgmt

auto peerlink
iface peerlink
    bond-slaves swp31 swp32
    bond-mode 802.3ad
    bond-lacp-bypass-allow no

auto peerlink.4094
iface peerlink.4094
    clagd-peer-ip linklocal
    clagd-backup-ip 10.0.11.9 vrf mgmt
    clagd-sys-mac 44:38:39:ff:41:4c
    clagd-args --initDelay 180
    clagd-debug off

auto bond190
iface bond190
    bond-slaves swp19
    bond-mode 802.3ad
    bond-lacp-bypass-allow yes
    bond-lacp-rate slow
    clag-id 190
    bridge-pvid 800
    mstpctl-bpduguard yes
    mstpctl-portadminedge yes

auto bond200
iface bond200
    bond-slaves swp20
    bond-mode 802.3ad
    bond-lacp-bypass-allow yes
    bond-lacp-rate slow
    clag-id 200
    bridge-pvid 800
    mstpctl-bpduguard yes
    mstpctl-portadminedge yes

auto peerlink.209
iface peerlink.209
    vrf IAZ

auto peerlink.409
iface peerlink.409
    vrf NCP

auto peerlink.509
iface peerlink.509
    vrf CMP

auto peerlink.609
iface peerlink.609
    vrf HRZ_MGT

auto peerlink.809
iface peerlink.809
    vrf CLD

auto swp1
iface swp1

auto swp2
iface swp2

auto swp3
iface swp3

auto swp4
iface swp4

auto swp17
iface swp17
    link-fec rs

auto swp18
iface swp18
    link-fec rs

auto swp19
iface swp19
    link-fec rs

auto swp20
iface swp20
    link-fec rs

auto swp23
iface swp23
    link-fec rs

auto swp24
iface swp24
    link-fec rs

auto swp25
iface swp25
    link-fec rs

auto swp26
iface swp26
    link-fec rs

auto swp27
iface swp27
    link-fec rs

auto swp28
iface swp28
    link-fec rs

auto swp29
iface swp29
    link-fec rs

auto swp30
iface swp30
    link-fec rs

auto swp31
iface swp31
    link-fec rs

auto swp32
iface swp32
    link-fec rs

auto swp17.800
iface swp17.800
    vrf CLD

auto swp18.800
iface swp18.800
    vrf CLD

auto swp27.200
iface swp27.200
    vrf IAZ

auto swp27.400
iface swp27.400
    vrf NCP

auto swp27.500
iface swp27.500
    vrf CMP

auto swp27.600
iface swp27.600
    vrf HRZ_MGT

auto swp27.800
iface swp27.800
    vrf CLD

auto swp28.200
iface swp28.200
    vrf IAZ

auto swp28.400
iface swp28.400
    vrf NCP

auto swp28.500
iface swp28.500
    vrf CMP

auto swp28.600
iface swp28.600
    vrf HRZ_MGT

auto swp28.800
iface swp28.800
    vrf CLD

auto swp29.200
iface swp29.200
    vrf IAZ

auto swp29.400
iface swp29.400
    vrf NCP

auto swp29.500
iface swp29.500
    vrf CMP

auto swp29.600
iface swp29.600
    vrf HRZ_MGT

auto swp29.800
iface swp29.800
    vrf CLD

auto swp30.200
iface swp30.200
    vrf IAZ

auto swp30.400
iface swp30.400
    vrf NCP

auto swp30.500
iface swp30.500
    vrf CMP

auto swp30.600
iface swp30.600
    vrf HRZ_MGT

auto swp30.800
iface swp30.800
    vrf CLD

auto vlan200
iface vlan200
    address 10.104.16.2/22
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.104.16.1/22
    vrf IAZ
    vlan-raw-device br_default
    vlan-id 200

auto vlan220
iface vlan220
    address 10.104.31.130/29
    address-virtual 00:00:5e:00:01:12 10.104.31.129/29
    vrf IAZ
    vlan-raw-device br_default
    vlan-id 220

auto vlan400
iface vlan400
    address 10.200.0.2/17
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.200.0.1/17
    vrf NCP
    vlan-raw-device br_default
    vlan-id 400

auto vlan420
iface vlan420
    address 10.92.240.42/29
    address-virtual 00:00:5e:00:01:12 10.92.240.41/29
    vrf NCP
    vlan-raw-device br_default
    vlan-id 420

auto vlan500
iface vlan500
    address 10.202.0.2/17
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.202.0.1/17
    vrf CMP
    vlan-raw-device br_default
    vlan-id 500

auto vlan520
iface vlan520
    address 10.92.244.2/29
    address-virtual 00:00:5e:00:01:12 10.92.244.1/29
    vrf CMP
    vlan-raw-device br_default
    vlan-id 520

auto vlan600
iface vlan600
    address 10.106.16.2/22
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.106.16.1/22
    vrf HRZ_MGT
    vlan-raw-device br_default
    vlan-id 600

auto vlan620
iface vlan620
    address 10.106.31.130/29
    address-virtual 00:00:5e:00:01:12 10.106.31.129/29
    vrf HRZ_MGT
    vlan-raw-device br_default
    vlan-id 620

auto vlan800
iface vlan800
    address 10.92.0.2/20
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.92.0.1/20
    vrf CLD
    vlan-raw-device br_default
    vlan-id 800

auto vlan801
iface vlan801
    address 10.92.16.2/20
    disable-ipv6 yes
    address-virtual 00:00:5e:00:01:12 10.92.16.2/20
    vrf CLD
    vlan-raw-device br_default
    vlan-id 801

auto vlan820
iface vlan820
    address 10.92.246.2/29
    address-virtual 00:00:5e:00:01:12 10.92.246.1/29
    vrf CLD
    vlan-raw-device br_default
    vlan-id 820

auto vxlan48
iface vxlan48
    bridge-vlan-vni-map 200=10200 400=10400 500=10500 600=10600 800=10800 801=10801
    bridge-learning off

auto br_default
iface br_default
    bridge-ports peerlink bond190 bond200 vxlan48
    bridge-vlan-aware yes
    bridge-vids 200 220 400 420 421 422 423 424 500 520 600 620 800 801 820
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
