Merge pull request #1661 from donaldsharp/connected

zebra: Install connected routes during VRF change only if interface i…
This commit is contained in:
Renato Westphal 2018-01-22 09:47:04 -02:00 committed by GitHub
commit c228c75be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,7 +768,8 @@ void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id)
zebra_interface_vrf_update_add(ifp, old_vrf_id);
/* Install connected routes (in new VRF). */
if_install_connected(ifp);
if (if_is_operative(ifp))
if_install_connected(ifp);
static_ifindex_update(ifp, true);