Page MenuHomeVyOS Platform

Error add second gre tunnel with the same source interface
Closed, ResolvedPublicBUG


It looks like a cosmetic bug:

set interfaces tunnel tun0 encapsulation 'gre'
set interfaces tunnel tun0 source-interface 'eth0'

set interfaces tunnel tun1 encapsulation 'gre'
set interfaces tunnel tun1 source-interface 'eth0'


vyos@r11-roll# commit
[ interfaces tunnel tun1 ]
VyOS had an issue completing a command.

Report time:      2022-01-09 16:01:03
Image version:    VyOS 1.4-rolling-202201080317
Release train:    sagitta

Built by:         [email protected]
Built on:         Sat 08 Jan 2022 03:17 UTC
Build UUID:       9c97b583-79c7-4fdf-b58f-3405d7207ee5
Build commit ID:  301d432afab62f

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (Q35 + ICH9, 2009)
Hardware S/N:     
Hardware UUID:    8e21d64e-e498-475c-9866-290cd53a3b86

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 190, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 180, in apply
    tun = TunnelIf(**tunnel)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 109, in __init__
    super().__init__(ifname, **kargs)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 321, in __init__
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 134, in _create
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/", line 161, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: ip tunnel add tun1 mode gre dev eth0 tos inherit ttl 64
exit code: 1

cmd 'ip tunnel add tun1 mode gre dev eth0 tos inherit ttl 64'
returned (out):

returned (err):
add tunnel "gre0" failed: File exists

[[interfaces tunnel tun1]] failed
Commit failed


Difficulty level
Easy (less than an hour)
VyOS 1.4-rolling-202201080317
Why the issue appeared?
Design mistake
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In

Event Timeline

(VyOS 1.4-rolling-202201200814) - The same.

c-po changed the task status from Open to Needs testing.Feb 14 2022, 6:10 PM
c-po triaged this task as Normal priority.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus ( 1.3.1) board.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.