diff options
author | sarita patra <saritap@vmware.com> | 2022-05-04 15:05:43 +0200 |
---|---|---|
committer | sarita patra <saritap@vmware.com> | 2022-05-13 08:51:21 +0200 |
commit | 9726536d1d88daf18696f2ea69e9a18131c14b9d (patch) | |
tree | 3b947a6db9e715bc9742e50c9ae64b4080fac28b /pimd/pim_cmd_common.c | |
parent | pimd: Disable receiving BSM on passive interface (diff) | |
download | frr-9726536d1d88daf18696f2ea69e9a18131c14b9d.tar.xz frr-9726536d1d88daf18696f2ea69e9a18131c14b9d.zip |
pimd: Northbound support for pim passive enable
Added nothbound callbacks for pim-passive-enable
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
-rw-r--r-- | pimd/pim_cmd_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c index 817afd60d..6cff3a077 100644 --- a/pimd/pim_cmd_common.c +++ b/pimd/pim_cmd_common.c @@ -352,6 +352,19 @@ int pim_process_ip_pim_cmd(struct vty *vty) FRR_PIM_AF_XPATH_VAL); } +int pim_process_ip_pim_passive_cmd(struct vty *vty, bool enable) +{ + if (enable) + nb_cli_enqueue_change(vty, "./pim-passive-enable", NB_OP_MODIFY, + "true"); + else + nb_cli_enqueue_change(vty, "./pim-passive-enable", NB_OP_MODIFY, + "false"); + + return nb_cli_apply_changes(vty, FRR_PIM_INTERFACE_XPATH, + FRR_PIM_AF_XPATH_VAL); +} + int pim_process_no_ip_pim_cmd(struct vty *vty) { const struct lyd_node *mld_enable_dnode; |