]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Eliminate loop over afi's for vpn vrf leaking commands
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 17 Apr 2018 13:21:24 +0000 (09:21 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 25 Apr 2018 16:39:17 +0000 (12:39 -0400)
commit69b07479f8f12bda3199f7f9617484920c23cfca
treecd68213b6b5b18f559d46625b419d4e0abc9ddee
parent25679caa80590a1148e3478e4f9916ac425d8fcf
bgpd: Eliminate loop over afi's for vpn vrf leaking commands

The loop over all afi's implies that these commands actually need
to loop over all afi's to check the vpn policy.  We know the
appropriate afi based upon the node we are in.  So just return
the correct afi to look at and then just apply it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c