summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2023-10-08 15:49:03 +0200
committerGitHub <noreply@github.com>2023-10-08 15:49:03 +0200
commit5c0a5aa616a48d3df1612c5c2f4810abb5cfe49c (patch)
tree34498e95a2151369d4602c173515f3fcdeae8d5c /isisd
parentMerge pull request #14534 from mjstapp/fix_topo_nhgid (diff)
parentisisd: remove redundant northbound destroy callbacks (diff)
downloadfrr-5c0a5aa616a48d3df1612c5c2f4810abb5cfe49c.tar.xz
frr-5c0a5aa616a48d3df1612c5c2f4810abb5cfe49c.zip
Merge pull request #14541 from idryzhov/isis-fix-cb-destroy
isisd: remove redundant northbound destroy callbacks
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_nb.c4
-rw-r--r--isisd/isis_nb.h8
-rw-r--r--isisd/isis_nb_config.c72
3 files changed, 0 insertions, 84 deletions
diff --git a/isisd/isis_nb.c b/isisd/isis_nb.c
index 186ebfc72..16cafa2ff 100644
--- a/isisd/isis_nb.c
+++ b/isisd/isis_nb.c
@@ -879,28 +879,24 @@ const struct frr_yang_module_info frr_isisd_info = {
.xpath = "/frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-segs-left",
.cbs = {
.modify = isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_modify,
- .destroy = isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_destroy,
},
},
{
.xpath = "/frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-end-pop",
.cbs = {
.modify = isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_modify,
- .destroy = isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_destroy,
},
},
{
.xpath = "/frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-h-encaps",
.cbs = {
.modify = isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_modify,
- .destroy = isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_destroy,
},
},
{
.xpath = "/frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-end-d",
.cbs = {
.modify = isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_modify,
- .destroy = isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_destroy,
},
},
{
diff --git a/isisd/isis_nb.h b/isisd/isis_nb.h
index be89fd2ac..c04a006a2 100644
--- a/isisd/isis_nb.h
+++ b/isisd/isis_nb.h
@@ -334,20 +334,12 @@ void cli_show_isis_srv6_locator(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults);
int isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_modify(
struct nb_cb_modify_args *args);
-int isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_destroy(
- struct nb_cb_destroy_args *args);
int isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_modify(
struct nb_cb_modify_args *args);
-int isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_destroy(
- struct nb_cb_destroy_args *args);
int isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_modify(
struct nb_cb_modify_args *args);
-int isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_destroy(
- struct nb_cb_destroy_args *args);
int isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_modify(
struct nb_cb_modify_args *args);
-int isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_destroy(
- struct nb_cb_destroy_args *args);
void cli_show_isis_srv6_node_msd(struct vty *vty, const struct lyd_node *dnode,
bool show_defaults);
int isis_instance_segment_routing_srv6_interface_modify(
diff --git a/isisd/isis_nb_config.c b/isisd/isis_nb_config.c
index 5d0089d6f..b6ee073fd 100644
--- a/isisd/isis_nb_config.c
+++ b/isisd/isis_nb_config.c
@@ -3583,24 +3583,6 @@ int isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_modify(
return NB_OK;
}
-int isis_instance_segment_routing_srv6_msd_node_msd_max_segs_left_destroy(
- struct nb_cb_destroy_args *args)
-{
- struct isis_area *area;
-
- if (args->event != NB_EV_APPLY)
- return NB_OK;
-
- area = nb_running_get_entry(args->dnode, NULL, true);
- area->srv6db.config.max_seg_left_msd =
- yang_get_default_uint8("./msd/node-msd/max-segs-left");
-
- /* Update and regenerate LSP */
- lsp_regenerate_schedule(area, area->is_type, 0);
-
- return NB_OK;
-}
-
/*
* XPath: /frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-end-pop
*/
@@ -3622,24 +3604,6 @@ int isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_modify(
return NB_OK;
}
-int isis_instance_segment_routing_srv6_msd_node_msd_max_end_pop_destroy(
- struct nb_cb_destroy_args *args)
-{
- struct isis_area *area;
-
- if (args->event != NB_EV_APPLY)
- return NB_OK;
-
- area = nb_running_get_entry(args->dnode, NULL, true);
- area->srv6db.config.max_end_pop_msd =
- yang_get_default_uint8("./msd/node-msd/max-end-pop");
-
- /* Update and regenerate LSP */
- lsp_regenerate_schedule(area, area->is_type, 0);
-
- return NB_OK;
-}
-
/*
* XPath: /frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-h-encaps
*/
@@ -3661,24 +3625,6 @@ int isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_modify(
return NB_OK;
}
-int isis_instance_segment_routing_srv6_msd_node_msd_max_h_encaps_destroy(
- struct nb_cb_destroy_args *args)
-{
- struct isis_area *area;
-
- if (args->event != NB_EV_APPLY)
- return NB_OK;
-
- area = nb_running_get_entry(args->dnode, NULL, true);
- area->srv6db.config.max_h_encaps_msd =
- yang_get_default_uint8("./msd/node-msd/max-h-encaps");
-
- /* Update and regenerate LSP */
- lsp_regenerate_schedule(area, area->is_type, 0);
-
- return NB_OK;
-}
-
/*
* XPath: /frr-isisd:isis/instance/segment-routing-srv6/msd/node-msd/max-end-d
*/
@@ -3700,24 +3646,6 @@ int isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_modify(
return NB_OK;
}
-int isis_instance_segment_routing_srv6_msd_node_msd_max_end_d_destroy(
- struct nb_cb_destroy_args *args)
-{
- struct isis_area *area;
-
- if (args->event != NB_EV_APPLY)
- return NB_OK;
-
- area = nb_running_get_entry(args->dnode, NULL, true);
- area->srv6db.config.max_end_d_msd =
- yang_get_default_uint8("./msd/node-msd/max-end-d");
-
- /* Update and regenerate LSP */
- lsp_regenerate_schedule(area, area->is_type, 0);
-
- return NB_OK;
-}
-
/*
* XPath: /frr-isisd:isis/instance/segment-routing-srv6/interface
*/