VXLAN does not verify if remote and group added together bug
To reproduce:
set interfaces ethernet eth1 address '192.0.2.1/24' set interfaces vxlan vxlan10 group '239.4.4.5' set interfaces vxlan vxlan10 mtu '1420' set interfaces vxlan vxlan10 remote '192.0.2.254' set interfaces vxlan vxlan10 source-address '192.0.2.1' set interfaces vxlan vxlan10 source-interface 'eth1' set interfaces vxlan vxlan10 vni '10' commit
commit:
vyos@r14# commit
[ interfaces vxlan vxlan10 ]
WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU
Traceback (most recent call last):
File "/usr/libexec/vyos/services/vyos-configd", line 146, in run_script
script.apply(c)
File "/usr/libexec/vyos//conf_mode/interfaces_vxlan.py", line 246, in apply
v = VXLANIf(**vxlan)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 341, in __init__
self._create()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/vxlan.py", line 106, in _create
self._cmd(cmd.format(**self.config))
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 64, in _cmd
return cmd(command, self.debug, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 187, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: ip link add vxlan10 type vxlan dstport 4789 group 239.4.4.5 df unset tos inherit ttl 16 remote 192.0.2.254 local 192.0.2.1 dev eth1 id 10
returned:
exit code: 1
[[interfaces vxlan vxlan10]] failed
Commit failed
[edit]
vyos@r14#Native commands:
vyos@r14# sudo ip link add vxlan10 type vxlan dstport 4789 group 239.4.4.5 df unset tos inherit ttl 16 remote 192.0.2.254 local 192.0.2.1 dev eth1 id 10 vxlan: both group and remote cannot be specified [edit] vyos@r14#