From 8d258daa09eb4389be834fe9d95afb9551100579 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 8 Aug 2024 01:25:02 +0300 Subject: [PATCH] ripd: fix show run output for distribute-list CLI show callbacks should be defined in frr_ripd_cli_info instead of frr_ripd_info, because only the former is loaded by mgmtd and only its callbacks are getting called for config output. Signed-off-by: Igor Ryzhov (cherry picked from commit 25d94ec3eedca978ce7c37359105b0518dcf0f5f) --- ripd/rip_cli.c | 16 ++++++++++++++++ ripd/rip_nb.c | 4 ---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index 4d4349b81aff..976764f07832 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -1355,6 +1355,22 @@ const struct frr_yang_module_info frr_ripd_cli_info = { .xpath = "/frr-ripd:ripd/instance/non-passive-interface", .cbs.cli_show = cli_show_rip_non_passive_interface, }, + { + .xpath = "/frr-ripd:ripd/instance/distribute-list/in/access-list", + .cbs.cli_show = group_distribute_list_ipv4_cli_show, + }, + { + .xpath = "/frr-ripd:ripd/instance/distribute-list/out/access-list", + .cbs.cli_show = group_distribute_list_ipv4_cli_show, + }, + { + .xpath = "/frr-ripd:ripd/instance/distribute-list/in/prefix-list", + .cbs.cli_show = group_distribute_list_ipv4_cli_show, + }, + { + .xpath = "/frr-ripd:ripd/instance/distribute-list/out/prefix-list", + .cbs.cli_show = group_distribute_list_ipv4_cli_show, + }, { .xpath = "/frr-ripd:ripd/instance/redistribute", .cbs.cli_show = cli_show_rip_redistribute, diff --git a/ripd/rip_nb.c b/ripd/rip_nb.c index d5df5916ada6..231099d3ac41 100644 --- a/ripd/rip_nb.c +++ b/ripd/rip_nb.c @@ -143,7 +143,6 @@ const struct frr_yang_module_info frr_ripd_info = { .cbs = { .modify = group_distribute_list_ipv4_modify, .destroy = group_distribute_list_ipv4_destroy, - .cli_show = group_distribute_list_ipv4_cli_show, } }, { @@ -151,7 +150,6 @@ const struct frr_yang_module_info frr_ripd_info = { .cbs = { .modify = group_distribute_list_ipv4_modify, .destroy = group_distribute_list_ipv4_destroy, - .cli_show = group_distribute_list_ipv4_cli_show, } }, { @@ -159,7 +157,6 @@ const struct frr_yang_module_info frr_ripd_info = { .cbs = { .modify = group_distribute_list_ipv4_modify, .destroy = group_distribute_list_ipv4_destroy, - .cli_show = group_distribute_list_ipv4_cli_show, } }, { @@ -167,7 +164,6 @@ const struct frr_yang_module_info frr_ripd_info = { .cbs = { .modify = group_distribute_list_ipv4_modify, .destroy = group_distribute_list_ipv4_destroy, - .cli_show = group_distribute_list_ipv4_cli_show, } }, {