diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-05-18 12:15:04 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-05-18 12:23:13 +0200 |
| commit | 92eedda1fb1b9c9fb2c31153677a033bee4573d3 (patch) | |
| tree | d99e2aa0ac3346dc20c766026e717cf69b0abbbb /zebra/interface.c | |
| parent | 303f85d5450ddc56250eff44a1e3d724c9e553fb (diff) | |
| parent | b2b6f8f33c934c87de580a1665acfe79e434b3ec (diff) | |
Merge branch stable/2.0 into stable/3.0
Conflicts:
bgpd/bgp_fsm.c
ospf6d/ospf6_lsa.c
ospfd/ospf_vty.c
zebra/redistribute.c
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 78ac0258ca..317cc722b4 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -709,6 +709,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 */ |
