verify() in vpp_interfaces_vxlan.py looks up the interface that holds source-address to check its MTU:
ifaces_with_ip = get_interfaces_by_ip(source_address) vpp_ifaces = config['vpp_ether_vif_ifaces'] matching_iface = next((iface for iface in ifaces_with_ip if iface in vpp_ifaces))
Since T8977 / T9322, get_interfaces_by_ip() returns only interfaces of the default VRF unless vrf= or include_vrf=True is passed. When the source address is on an interface that is in a VRF, the list is empty and next() without a default raises StopIteration. The earlier check verify_vpp_tunnel_source_address() passes, because it tests the VPP interfaces directly.
Steps to reproduce
set vrf name MV1V table 3143 set interfaces ethernet eth1 address 10.143.243.1/24 set interfaces ethernet eth1 vrf MV1V set vpp settings interface eth1 commit set interfaces vpp vxlan vppvxlan43 remote 10.143.243.2 set interfaces vpp vxlan vppvxlan43 source-address 10.143.243.1 set interfaces vpp vxlan vppvxlan43 vni 43 commit
Actual
[ interfaces vpp vxlan vppvxlan43 ]
Traceback (most recent call last):
File "/usr/libexec/vyos/services/vyos-configd", line 100, in run_script
config_manager.verify(script_name, c)
File "/usr/lib/python3/dist-packages/vyos/configmanager.py", line 248, in verify
mod.verify(config_dict)
File "/usr/libexec/vyos/conf_mode/vpp_interfaces_vxlan.py", line 145, in verify
matching_iface = next((iface for iface in ifaces_with_ip if iface in vpp_ifaces))
StopIteration
[[interfaces vpp vxlan vppvxlan43]] failed
Commit failedWith eth1 in the default VRF the same tunnel commits, survives save and reboot, config-status 0.
Expected
Either the tunnel commits (VRF underlay supported) or the commit fails with a ConfigError that says a VRF underlay is not supported.
Suggested fix
Look the interface up with get_interfaces_by_ip(source_address, include_vrf=True) (or with the VRF of the matching VPP interface), and give next() a default so a miss raises a ConfigError.