]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink_bridge_slave.c
bridge: add support for backup port
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 12 Oct 2018 11:42:55 +0000 (14:42 +0300)
committerDavid Ahern <dsahern@gmail.com>
Sun, 14 Oct 2018 02:26:46 +0000 (19:26 -0700)
commitd13d52d0d57fe4c5465dfaaa168f0a56081a24d8
tree51589e913fde2a8939cd8cde14d0e7aa201173ca
parent4c45b684f90e3c00bd9ffb299d01016381da6fa6
bridge: add support for backup port

This patch adds support for the new backup port option that can be set
on a bridge port. If the port's carrier goes down all of the traffic
gets redirected to the configured backup port. We add the following new
arguments:
$ ip link set dev brport type bridge_slave backup_port brport2
$ ip link set dev brport type bridge_slave nobackup_port

$ bridge link set dev brport backup_port brport2
$ bridge link set dev brport nobackup_port

The man pages are updated respectively.
Also 2 minor style adjustments:
- add missing space to bridge man page's state argument
- use lower starting case for vlan_tunnel in ip-link man page (to be
consistent with the rest)

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
bridge/link.c
ip/iplink_bridge_slave.c
man/man8/bridge.8
man/man8/ip-link.8.in