summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-14 02:12:33 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-03 23:36:31 +0300
commit23f1fa07043ae34c9309d582a90f0f2b3fd1a0fd (patch)
treeea0129075f965b5d096a0454dc44a6ff26464182
parent2fc82a12fbf94d0f2499cbbe72968ae0c19a68c4 (diff)
Revert "bgpd: rename router bgp callbacks"
This reverts commit feded4118b89eba5a1629f45cfe623277612e404.
-rw-r--r--bgpd/bgp_nb.c4
-rw-r--r--bgpd/bgp_nb.h4
-rw-r--r--bgpd/bgp_nb_config.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/bgpd/bgp_nb.c b/bgpd/bgp_nb.c
index 7b36130b74..004e74d7ed 100644
--- a/bgpd/bgp_nb.c
+++ b/bgpd/bgp_nb.c
@@ -32,8 +32,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_router_create,
- .destroy = bgp_router_destroy,
+ .create = bgp_create,
+ .destroy = bgp_destroy,
}
},
{
diff --git a/bgpd/bgp_nb.h b/bgpd/bgp_nb.h
index b817275ae1..530d588811 100644
--- a/bgpd/bgp_nb.h
+++ b/bgpd/bgp_nb.h
@@ -26,8 +26,8 @@
extern const struct frr_yang_module_info frr_bgp_info;
/* prototypes */
-int bgp_router_create(struct nb_cb_create_args *args);
-int bgp_router_destroy(struct nb_cb_destroy_args *args);
+int bgp_create(struct nb_cb_create_args *args);
+int bgp_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);
diff --git a/bgpd/bgp_nb_config.c b/bgpd/bgp_nb_config.c
index deecbfe842..c0339b34c0 100644
--- a/bgpd/bgp_nb_config.c
+++ b/bgpd/bgp_nb_config.c
@@ -66,7 +66,7 @@ int routing_control_plane_protocols_name_validate(
* XPath:
* /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp
*/
-int bgp_router_create(struct nb_cb_create_args *args)
+int bgp_create(struct nb_cb_create_args *args)
{
const struct lyd_node *vrf_dnode;
struct bgp *bgp;
@@ -136,7 +136,7 @@ int bgp_router_create(struct nb_cb_create_args *args)
return NB_OK;
}
-int bgp_router_destroy(struct nb_cb_destroy_args *args)
+int bgp_destroy(struct nb_cb_destroy_args *args)
{
struct bgp *bgp;