]> git.proxmox.com Git - mirror_frr.git/commit - pbrd/pbr_vty.c
pbrd: change the "set nexthop" command to accept interface nexthops
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 14 Feb 2019 22:00:15 +0000 (20:00 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 15 Feb 2019 00:57:39 +0000 (22:57 -0200)
commit9c0fd85360422b79e75e6ee5eeb1df5a9439e952
treed3a613048400d7f092c8cf2143e18d46ef8e5807
parenta106a4087b47e180e32c66e139449bcf2660578f
pbrd: change the "set nexthop" command to accept interface nexthops

In addition to nexthop groups, pbrd also supports the "set nexthop"
command to specify the nexthop of a PBR map. This adds convenience
when multiple nexthops aren't necessary.

Change this command to support interface nexthops (without IP
addresses) like nexthop groups do. At the end of the command, call
pbr_nht_nexthop_interface_update() otherwise the interface nexthop
won't be validated until we receive an interface up/down notification
from zebra through the zapi protocol.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
pbrd/pbr_vty.c