Skip to content

Commit

Permalink
lib: delete interface if you can in upper level protocol
Browse files Browse the repository at this point in the history
In an upper level protocol, delete the interface on notification
about deletion.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Sep 19, 2019
1 parent e63027d commit f7d0d20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/if.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ void if_destroy_via_zapi(struct interface *ifp)
(*ifp_master.destroy_hook)(ifp);

if_set_index(ifp, IFINDEX_INTERNAL);
if (!ifp->configured)
if_delete(ifp);
}

void if_up_via_zapi(struct interface *ifp)
Expand Down

0 comments on commit f7d0d20

Please sign in to comment.