VXLAN interfaces disappear if wireguard interface was changed
To reproduce:
set interfaces wireguard wg1 address 10.20.30.1/24 set interfaces wireguard wg1 description 'First peer' set interfaces wireguard wg1 peer first address '192.0.2.31' set interfaces wireguard wg1 peer first allowed-ips '10.20.30.2/32' set interfaces wireguard wg1 peer first persistent-keepalive '25' set interfaces wireguard wg1 peer first port '55555' set interfaces wireguard wg1 peer first public-key '6HXVzOzM3yYz+MkXUOajmLU22CEvYacISODOwQPqE34=' set interfaces wireguard wg1 port '50001' set interfaces wireguard wg1 private-key '2L4gceJCIpL9QjPZnsO3Mfb+2if+dYtBINZE2F4mDXU=' set interfaces vxlan vxlan1 address '10.1.1.1/30' set interfaces vxlan vxlan1 mtu '1350' set interfaces vxlan vxlan1 port '4789' set interfaces vxlan vxlan1 remote '192.0.2.31' set interfaces vxlan vxlan1 source-interface 'wg1' set interfaces vxlan vxlan1 vni '5' commit && ip link show | match "wg|vxlan" set interfaces wireguard wg1 peer first persistent-keepalive 15 commit && ip link show | match "wg|vxlan"
After the first commit we see both interfaces, after the second commit we see only wireguard but do not see vxlan interface
### first commit vyos@r14# commit && ip link show | match "wg|vxlan" [ interfaces vxlan vxlan1 ] WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU 11: wg1: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 12: vxlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1350 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 [edit] vyos@r14# [edit] ### second commit vyos@r14# set interfaces wireguard wg1 peer first persistent-keepalive 15 [edit] vyos@r14# commit && ip link show | match "wg|vxlan" 13: wg1: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 [edit] vyos@r14#
Most likely needs a dependency wireguard => vxlan