VXlan breaks on dependent network restart

I just updated to latest snapshot OpenWrt SNAPSHOT (r31061-3a0581adc8) and had the issue of my vxlan not coming up after boot similar to the OP.

Not sure if this is related but my bridge configs had the list ports (in the bridge) as ‘lnk1.10’ ( as an example ), I altered these to ‘@lnk1.10’ restarted the network and my vxlan came up. I then tried a interface restart from the gui and the vxlan link reestablished again as expected.

I did try the above suggestions but my config has 4 vlans and associated bridges via the vxlan link and I didn’t manage to adapt any of the above successfully.

Rod

Could you post /etc/config/network?

/etc/config# cat network

config interface 'loopback'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'
        option device 'lo'

config globals 'globals'
        option ula_prefix 'fdd6:0777:13b4::/48'
        option packet_steering '1'

config interface 'lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.128.253'
        option device 'br-lan'
        option delegate '0'
        option gateway '192.168.128.254'
        list dns '192.168.128.254'

config interface 'wan'
        option proto 'dhcp'
        option ipv6 '0'
        option device 'eth0.100'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '10'
        option description 'lan'
        option ports '0t 3 4 5t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '100'
        option description 'wan'
        option ports '0t 1'

config device
        option name 'br-lan'
        option type 'bridge'
        option stp '1'
        option priority '4096'
        option bridge_empty '1'
        list ports 'eth0.10'
        list ports '@lnk1.10'

config device
        option name '2glnk'
        option mtu '1550'
        option ipv6 '0'

config interface 'trunk'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '172.16.1.253'
        option defaultroute '0'
        option force_link '0'
        option delegate '0'

config interface 'lnk1'
        option proto 'vxlan'
        option peeraddr '239.1.1.1'
        option vid '1'
        option tunlink 'trunk'
        option peerdns '0'
        option delegate '0'
        option mtu '1500'
        option rsc '1'
        option proxy '1'

config switch_vlan
        option device 'switch0'
        option vlan '5'
        option vid '20'
        option description 'guest'
        option ports '0t 5t'

config switch_vlan
        option device 'switch0'
        option vlan '4'
        option vid '30'
        option description 'iot'
        option ports '0t 5t'

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option vid '40'
        option ports '0t 2 5t'
        option description 'mgmnt'

config interface 'guest'
        option proto 'none'
        option device 'br-guest'
        option delegate '0'
        option defaultroute '0'

config device
        option type 'bridge'
        option name 'br-guest'
        option priority '4096'
        option stp '1'
        option bridge_empty '1'
        option ipv6 '0'
        list ports 'eth0.20'
        list ports '@lnk1.20'

config interface 'mgmnt'
        option proto 'static'
        option netmask '255.255.255.0'
        option defaultroute '0'
        option delegate '0'
        option device 'br-mgmnt'
        option ipaddr '192.168.40.253'
        option force_link '0'

config device
        option type 'bridge'
        option name 'br-mgmnt'
        option stp '1'
        option priority '4096'
        option ipv6 '0'
        option bridge_empty '1'
        list ports 'eth0.40'
        list ports '@lnk1.40'

config device
        option type 'bridge'
        option name 'br-iot'
        option priority '4096'
        option stp '1'
        option bridge_empty '1'
        option ipv6 '0'
        list ports 'eth0.30'
        list ports '@lnk1.30'

config interface 'iot'
        option proto 'none'
        option device 'br-iot'
        option delegate '0'
        option defaultroute '0'

This is the primary AP, the secondary AP is effectively the same.