]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Set table id *before* we enable the vrf 1966/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 25 Mar 2018 23:35:27 +0000 (19:35 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 25 Mar 2018 23:35:27 +0000 (19:35 -0400)
commit593406a1335eda5098ffc191845cc8592c21c444
tree3ca93d11ddfee7844a82c08d84210cc611ad2ab6
parentfc9aa7acdc3eb3501aff2af5548defb52ae77733
zebra: Set table id *before* we enable the vrf

The table id of the vrf is being given to us as part
of the vrf creation netlink callback.  Unfortunately it
was being set in the zvrf *after* the vrf_enable callback.

This didn't used to matter until we started having config data
stored on the side that we needed to act on when the vrf
came up enough to start working.

So when we were storing static routes and installing them
they were being pushed into the default table for non-default
vrf's.

Ticket: CM-19141
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/if_netlink.c