]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: Be a bit more lenient with `set nexthop A.B.C.D <intf>` 6666/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 30 Jun 2020 15:16:36 +0000 (11:16 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Jul 2020 00:01:24 +0000 (20:01 -0400)
commit0189f7226fe8e1ee5a365ff2654922dd5aae7753
tree52700b7848ba59f68f0e24a7c60ac235d956173f
parentd070e6429a01fcc4d4baaf2e2d8a55ce57d50dbe
pbrd: Be a bit more lenient with `set nexthop A.B.C.D <intf>`

When specifying an interface in a pbr-map `set nexthop ..` command
be a bit more lenient about the interface.

a) If the interface does not exist bail on the command
    (this is the same)
b) If the interface exists but is in a different vrf
   than specified use the vrf it is actually in.
    (this is new behavior)

Ticket: CM-30187
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pbrd/pbr_vty.c