Moving a tunnel or VXLAN interface from a zoned VRF to another VRF leaves it in the old zone's rules. By the same code path, an interface that joins a zoned VRF is not added, so that zone does not filter its traffic.
set vrf name red table 101 set vrf name blue table 102 set interfaces ethernet eth1 address 192.0.2.1/24 set interfaces ethernet eth1 vrf red set interfaces tunnel tun9 encapsulation gre set interfaces tunnel tun9 source-address 192.0.2.1 set interfaces tunnel tun9 remote 192.0.2.9 set interfaces tunnel tun9 vrf red set firewall zone LAN default-action drop set firewall zone LAN member vrf red commit set interfaces tunnel tun9 vrf blue commit
tun9 still in zone LAN's VYOS_ZONE_FORWARD after the move (vxlan: same) 1.5.1 no (3/3) rolling yes (0/3)
Cause
T8761 (https://github.com/vyos/vyos-1x/pull/5167, 0d3ac22b9) added is_vrf_changed(conf, ifname) to set the firewall dependent. In interfaces_tunnel.py it runs after conf.set_level(['protocols', 'nhrp', 'tunnel']), in interfaces_vxlan.py after conf.set_level(base). The config level is prefixed to the absolute path that is_vrf_changed() builds, so it always returns False.
Suggested fix
Reset the config level (conf.set_level([])) before is_vrf_changed(), or make is_vrf_changed() independent of the level.