summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-03-02 15:42:42 -0300
committerRenato Westphal <renatowestphal@gmail.com>2019-03-29 11:32:33 -0300
commit6a3fdeecf102f18afa95dbbe714d3b72f9e2a9dc (patch)
tree7ddaeb98c413dc1b04f4cae0b86804903d33db65 /lib/if.c
parent8f88441d717c0ded412543cceabf0ddd93ee9f09 (diff)
lib, ripd, ripngd: rename remaining delete northbound callbacks
PR #3622 renamed the "delete" northbound callback to "destroy" in order to make the libfrr headers compatible with C++. This commit renames a few functions that still use "delete" instead of "destroy" in their names. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/if.c b/lib/if.c
index 48841c7ee8..b26934c3f6 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1309,8 +1309,8 @@ static int lib_interface_create(enum nb_event event,
return NB_OK;
}
-static int lib_interface_delete(enum nb_event event,
- const struct lyd_node *dnode)
+static int lib_interface_destroy(enum nb_event event,
+ const struct lyd_node *dnode)
{
struct interface *ifp;
@@ -1357,8 +1357,8 @@ static int lib_interface_description_modify(enum nb_event event,
return NB_OK;
}
-static int lib_interface_description_delete(enum nb_event event,
- const struct lyd_node *dnode)
+static int lib_interface_description_destroy(enum nb_event event,
+ const struct lyd_node *dnode)
{
struct interface *ifp;
@@ -1379,13 +1379,13 @@ const struct frr_yang_module_info frr_interface_info = {
{
.xpath = "/frr-interface:lib/interface",
.cbs.create = lib_interface_create,
- .cbs.destroy = lib_interface_delete,
+ .cbs.destroy = lib_interface_destroy,
.cbs.cli_show = cli_show_interface,
},
{
.xpath = "/frr-interface:lib/interface/description",
.cbs.modify = lib_interface_description_modify,
- .cbs.destroy = lib_interface_description_delete,
+ .cbs.destroy = lib_interface_description_destroy,
.cbs.cli_show = cli_show_interface_desc,
},
{