]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip route: Add option to use nexthop objects
authorDavid Ahern <dsahern@gmail.com>
Fri, 7 Jun 2019 22:38:15 +0000 (15:38 -0700)
committerDavid Ahern <dsahern@gmail.com>
Tue, 11 Jun 2019 17:31:28 +0000 (10:31 -0700)
commit12387e2c14d6d256cd068ca11923f23bea6727be
tree6a9298af0bb1cd313138c4ec5406da32ba33d258
parent42cce67e713fa6ea415f6749a822511419044b79
ip route: Add option to use nexthop objects

Add nhid option for routes to use nexthop objects by id.

Example:
  $ ip nexthop add id 1 via 10.99.1.2 dev veth1
  $ ip route add 10.100.1.0/24 nhid 1
  $ ip route ls
  ...
  10.100.1.0/24 nhid 1 via 10.99.1.2 dev veth1

Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iproute.c
man/man8/ip-route.8.in