Page MenuHomeVyOS Platform

GRETAP: key is not applied when interface is created
Closed, ResolvedPublicBUG


 tunnel tun2000 {
     encapsulation gre-bridge
     parameters {
         ip {
             key 2000
+tunnel tun3000 {
+    encapsulation gre-bridge
+    local-ip
+    parameters {
+        ip {
+            key 3000
+        }
+    }
+    remote-ip
[email protected]# commit
[ interfaces tunnel tun3000 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Make sure you are running the latest stable version of VyOS
  the code is available at
- Contact us using the online help desk
- Join our community on slack where our users exchange help and advice

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report Time:      2021-07-20 19:05:18
Image Version:    VyOS 1.3.0-rc5
Release Train:    equuleus

Built by:         Sentrium S.L.
Built on:         Tue 29 Jun 2021 08:26 UTC
Build UUID:       36f7c218-6ebb-497f-9ec5-676241e5c13a
Build Commit ID:  892e8689b3234e

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

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    6a3f4e98-1913-402e-bf69-8ac07126871a

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 202, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 191, in apply
    tun = klass(interface, **conf)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 71, in __init__
    super().__init__(ifname, **config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 266, in __init__
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 77, in _create
    self._cmd('{} {}'.format(self._create_cmd.format(**self.config), options))
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 51, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/", line 161, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip link add name tun3000 type gretap local remote ttl 64
exit code: 2

cmd 'ip link add name tun3000 type gretap local remote ttl 64'
returned (out):

returned (err):
RTNETLINK answers: File exists

[[interfaces tunnel tun3000]] failed


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to Confirmed.Jul 20 2021, 5:13 PM
c-po claimed this task.
c-po created this task.
c-po triaged this task as Normal priority.
c-po removed a project: VyOS 1.4 Sagitta.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
SrividyaA set Issue type to Bug (incorrect behavior).Sep 1 2021, 10:37 AM