To reproduce
set interfaces ethernet eth0 address '192.168.122.11/24' set interfaces tunnel tun1 address '10.20.30.1/30' set interfaces tunnel tun1 encapsulation 'gre' set interfaces tunnel tun1 local-ip '192.168.122.11' set interfaces tunnel tun1 multicast 'disable' commit set interfaces tunnel tun1 remote-ip 192.168.122.12 commit
After the second commit
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/interfaces-tunnel.py", line 189, in <module>
apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-tunnel.py", line 179, in apply
tun.change_options()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/tunnel.py", line 85, in change_options
self._cmd('{} {}'.format(change.format(**self.config), options))
File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 51, in _cmd
return cmd(command, self.debug)
File "/usr/lib/python3/dist-packages/vyos/util.py", line 179, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: ip tunnel change tun1 mode gre local 192.168.122.11 remote 192.168.122.12 ttl 0 tos inherit
returned:
exit code: 1
noteworthy:
cmd 'ip tunnel change tun1 mode gre local 192.168.122.11 remote 192.168.122.12 ttl 0 tos inherit'
returned (out):
returned (err):
add tunnel "tun1" failed: Invalid argument
[[interfaces tunnel tun1]] failed