Page MenuHomeVyOS Platform

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

Description

set interfaces tunnel tun12 encapsulation sit
set interfaces tunnel tun12 local-ip 192.0.2.12
set interfaces tunnel tun12 remote-ip 192.0.2.22
set interfaces tunnel tun12 address 2001:db8:bb::2/64
set interfaces bridge br0 member interface tun12

Trace

Date:       2020-04-21 16:36:14
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 tun12 master br0\nreturned: \nexit code: 2\n']

[[interfaces bridge br0]] failed
Commit failed
[edit]

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)

Related Objects

StatusSubtypeAssignedTask
OpenBUGNone
InvalidBUGNone

Event Timeline

c-po added a subscriber: c-po.Mon, Nov 23, 3:49 PM

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

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

[[interfaces tunnel tun12]] failed
Commit failed
c-po closed this task as Invalid.Mon, Nov 23, 3:49 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Mon, Nov 23, 5:20 PM