]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Push VRF_DEFAULT outside of import table code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 25 Jun 2019 21:07:30 +0000 (17:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 25 Jun 2019 21:47:41 +0000 (17:47 -0400)
commitfe257ae73337de31ad0c239a89f44713169b4ca9
tree1ab624da3842790173b4d2bebbf19de96b0c0d02
parent7505ec52aa05d22c9b87c9ae33424cfd2360124c
zebra: Push VRF_DEFAULT outside of import table code

The import table code assumes that they will only work
in the default vrf.  This is ok, but we should push the
vrf_id and zvrf to be passed in instead of just using
VRF_DEFAULT.

This will allow us to fix a couple of things:

1) A bug in import where we are not creating the
route entry with the appropriate table so the imported
entry is showing up in the wrong spot.

2) In the future allow `ip import-table X` to become
vrf aware very easily.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/redistribute.c
zebra/redistribute.h
zebra/zebra_rib.c
zebra/zebra_vty.c