diff options
author | Igor Ryzhov <idryzhov@gmail.com> | 2024-08-08 00:25:02 +0200 |
---|---|---|
committer | Igor Ryzhov <idryzhov@gmail.com> | 2024-08-08 00:25:02 +0200 |
commit | 25d94ec3eedca978ce7c37359105b0518dcf0f5f (patch) | |
tree | e6e360eb1bea10c9787602118c501fbd231104ee /ripd | |
parent | Merge pull request #16523 from LabNConsulting/chopps/fix-mgmt-rpc-test (diff) | |
download | frr-25d94ec3eedca978ce7c37359105b0518dcf0f5f.tar.xz frr-25d94ec3eedca978ce7c37359105b0518dcf0f5f.zip |
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 <idryzhov@gmail.com>
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/rip_cli.c | 16 | ||||
-rw-r--r-- | 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 7066485be..5712a0b82 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -1375,6 +1375,22 @@ const struct frr_yang_module_info frr_ripd_cli_info = { .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 d5df5916a..231099d3a 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, } }, { |