diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 09:40:57 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 13:34:06 -0400 | 
| commit | 3c3c325203848994bae83a85cb606d4e4deeeb25 (patch) | |
| tree | ac8447eb389883d0f009599cb4ea460401f5af8b /babeld/babel_interface.c | |
| parent | b0b69e59f463b696d0e20f30c46c59c9cf0044b1 (diff) | |
*: Convert zapi->interface_delete to ifp callback
Convert the callback of the interface_delete to the new
ifp callback.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/babel_interface.c')
| -rw-r--r-- | babeld/babel_interface.c | 22 | 
1 files changed, 2 insertions, 20 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index 59d0651168..6e60300983 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -103,31 +103,18 @@ int babel_ifp_create (struct interface *ifp)      debugf(BABEL_DEBUG_IF, "receive a 'interface add'");      interface_recalculate(ifp); -     +       return 0;   }  int -babel_interface_delete (ZAPI_CALLBACK_ARGS) +babel_ifp_destroy(struct interface *ifp)  { -    struct interface *ifp; -    struct stream *s; -      debugf(BABEL_DEBUG_IF, "receive a 'interface delete'"); -    s = zclient->ibuf; -    ifp = zebra_interface_state_read(s, vrf_id); /* it updates iflist */ - -    if (ifp == NULL) -        return 0; -      if (IS_ENABLE(ifp))          interface_reset(ifp); -    /* To support pseudo interface do not free interface structure.  */ -    /* if_delete(ifp); */ -    if_set_index(ifp, IFINDEX_INTERNAL); -      return 0;  } @@ -1250,11 +1237,6 @@ int babel_ifp_up(struct interface *ifp)  	return 0;  } -int babel_ifp_destroy(struct interface *ifp) -{ -	return 0; -} -  void  babel_if_init(void)  {  | 
