Page MenuHomeVyOS Platform

Adding IPIP tun interface to bridge [conf_mode] errors
Closed, InvalidPublicBUG

Description

set interfaces tunnel tun28 encapsulation ipip
set interfaces tunnel tun28 local-ip 192.0.2.18
set interfaces tunnel tun28 remote-ip 203.0.113.28
set interfaces tunnel tun28 address 192.168.100.208/24
commit

set interfaces bridge br0 member interface tun28
commit

Traceback

Date:       2020-04-21 16:40:04
VyOS image: 1.3-rolling-202004210117

['Traceback (most recent call last):\n', '  File "/usr/libexec/vyos/conf_mode/interfaces-bridge.py", line 365, in <module>\n    apply(c)\n', '  File "/usr/libexec/vyos/conf_mode/interfaces-bridge.py", line 331, in apply\n    br.add_port(member[\'name\'])\n', '  File "/usr/lib/python3/dist-packages/vyos/ifconfig/bridge.py", line 179, in add_port\n    return self.set_interface(\'add_port\', interface)\n', '  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 154, in set_interface\n    return self._set_command(self.config, name, value)\n', '  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 82, in _set_command\n    return self._command_set[name].get(\'format\', lambda _: _)(self._cmd(cmd))\n', '  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 48, in _cmd\n    return cmd(command, self.debug)\n', '  File "/usr/lib/python3/dist-packages/vyos/util.py", line 139, in cmd\n    raise OSError(code, feedback)\n', 'FileNotFoundError: [Errno 2] failed to run command: ip link set dev tun28 master br0\nreturned: \nexit code: 2\n']

[[interfaces bridge br0]] failed
Commit failed

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-rolling-202004210117
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

This is prevented by the OS kernel. The Kernel error message is now forwarded to the user.

vyos@vyos# set interfaces tunnel tun28 encapsulation ipip
vyos@vyos# set interfaces tunnel tun28 local-ip 192.0.2.12
vyos@vyos# set interfaces tunnel tun28 remote-ip 192.0.2.22
vyos@vyos# set interfaces bridge br0 member interface tun28
vyos@vyos# commit
[ interfaces tunnel tun28 ]
Error: Device does not allow enslaving to a bridge.

[[interfaces tunnel tun28]] failed
Commit failed
erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 6:41 AM
erkin removed a subscriber: Active contributors.