diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 09:59:00 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 13:34:06 -0400 |
| commit | 26f8f6fe7fb90208d4a5eb285fdf0dca83bde508 (patch) | |
| tree | ecc4681a1f33c82a787e16e1f0148ef5916f8e47 /lib/if.c | |
| parent | 3c3c325203848994bae83a85cb606d4e4deeeb25 (diff) | |
lib: delete interface if you can in upper level protocol
In an upper level protocol, delete the interface on notification
about deletion.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
