summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-05-17 23:35:29 +0200
committerGitHub <noreply@github.com>2017-05-17 23:35:29 +0200
commit8f58b151431754890c3804b8c2a7515801f3e7a8 (patch)
tree071dbab5f2065ee6ba264e2e02908cbf7fbb1868 /zebra/interface.c
parent56b6674bc0f774168ea5e8330a7d8c3cb382d0e0 (diff)
parent1dac3a9619c8436f81c7b37f0252574b0b677dd0 (diff)
Merge pull request #562 from dslicenc/small-zebra-fixes
Small zebra fixes
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 39c20e6289..524183a434 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -693,6 +693,10 @@ if_delete_update (struct interface *ifp)
for setting ifindex to IFINDEX_INTERNAL after processing the
interface deletion message. */
ifp->ifindex = IFINDEX_INTERNAL;
+
+ /* if the ifp is in a vrf, move it to default so vrf can be deleted if desired */
+ if (ifp->vrf_id)
+ if_handle_vrf_change (ifp, VRF_DEFAULT);
}
/* VRF change for an interface */