]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: rename router bgp callbacks
authorChirag Shah <chirag@nvidia.com>
Sat, 10 Oct 2020 21:26:48 +0000 (14:26 -0700)
committerChirag Shah <chirag@nvidia.com>
Mon, 12 Oct 2020 23:13:59 +0000 (16:13 -0700)
Avoid similar name function as bgp_crate()

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_nb.c
bgpd/bgp_nb.h
bgpd/bgp_nb_config.c

index b9fff124dfb7163974e04a34edb94981d86ba553..551bdb0c2b895255f313d58776c8740f77e3e704 100644 (file)
@@ -30,8 +30,8 @@ const struct frr_yang_module_info frr_bgp_info = {
                        .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp",
                        .cbs = {
                                .cli_show = cli_show_router_bgp,
-                               .create = bgp_create,
-                               .destroy = bgp_destroy,
+                               .create = bgp_router_create,
+                               .destroy = bgp_router_destroy,
                        }
                },
                {
index 097b40d7b7777608d9fb2d22fc1d5627fb3ffb55..341666c7ed654af6a61465d06a26ced21e55163a 100644 (file)
@@ -26,8 +26,8 @@
 extern const struct frr_yang_module_info frr_bgp_info;
 
 /* prototypes */
-int bgp_create(struct nb_cb_create_args *args);
-int bgp_destroy(struct nb_cb_destroy_args *args);
+int bgp_router_create(struct nb_cb_create_args *args);
+int bgp_router_destroy(struct nb_cb_destroy_args *args);
 int bgp_global_local_as_modify(struct nb_cb_modify_args *args);
 int bgp_global_router_id_modify(struct nb_cb_modify_args *args);
 int bgp_global_router_id_destroy(struct nb_cb_destroy_args *args);
index ba7c5714bba612d56ccb9f99dd47f9180a831154..a610ce6c248b847ca86297d5d90cc6fb02878ebc 100644 (file)
@@ -62,7 +62,7 @@ int routing_control_plane_protocols_name_validate(
  * XPath:
  * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp
  */
-int bgp_create(struct nb_cb_create_args *args)
+int bgp_router_create(struct nb_cb_create_args *args)
 {
        const struct lyd_node *vrf_dnode;
        struct bgp *bgp;
@@ -132,7 +132,7 @@ int bgp_create(struct nb_cb_create_args *args)
        return NB_OK;
 }
 
-int bgp_destroy(struct nb_cb_destroy_args *args)
+int bgp_router_destroy(struct nb_cb_destroy_args *args)
 {
        struct bgp *bgp;