]> git.ipfire.org Git - thirdparty/iproute2.git/commit
nexthop: Add ability to specify group type
authorIdo Schimmel <idosch@nvidia.com>
Wed, 17 Mar 2021 12:54:33 +0000 (13:54 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 19 Mar 2021 15:00:49 +0000 (15:00 +0000)
commitb82d6b81fa84c85dc45e738c45fdb6ab09041b7d
tree81cdedbd62a47fd97a72c4a8fa82563d2e017926
parent28fb925d8bf2578552f53598e7d7f29050a967b4
nexthop: Add ability to specify group type

Next patches are going to add a 'resilient' nexthop group type, so allow
users to specify the type using the 'type' argument. Currently, only
'mpath' type is supported.

These two commands are equivalent:

 # ip nexthop add id 10 group 1/2/3
 # ip nexthop add id 10 group 1/2/3 type mpath

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipnexthop.c
man/man8/ip-nexthop.8