]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Move interfaces to default before deleting
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 23 Nov 2016 19:58:27 +0000 (11:58 -0800)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 17 May 2017 12:18:14 +0000 (08:18 -0400)
commit9c5cd62f08f5e0d77a6474e15a49dcf8bd8ce21c
tree7ca8fc0896c181af81331bcd0b947f0d90db66ff
parent56b6674bc0f774168ea5e8330a7d8c3cb382d0e0
zebra: Move interfaces to default before deleting

Encountered a crash in zebra due to getting a delete on an SVI with
VRR configured.  Since we don't actually do a delete but flag the interface
as inactive, slag VRR interfaces would remain on the vrf_iflist with a lock
count of zero, causing the crash.  Since all other interface types are moved
to the default table before deleting, doing the same thing for any interfaces
that were left in the vrf.

Testing includes manual testing, bgp-min, ospf-min, vrf-min, bgp-smoke, and ospf-smoke.
All passed (first time or on rerun) or match known failures.

Ticket: CM-13288
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
zebra/interface.c