forked from Mirror/frr
pimd: add igmp proxy cli and yang configuration
Signed-off-by: Barry A. Trent <barry.trent@atcorp.com>
This commit is contained in:
parent
26b67993d0
commit
9b68853e0d
|
@ -420,6 +420,17 @@ int pim_process_no_ip_pim_boundary_oil_cmd(struct vty *vty)
|
|||
FRR_PIM_AF_XPATH_VAL);
|
||||
}
|
||||
|
||||
int pim_process_ip_gmp_proxy_cmd(struct vty *vty, bool enable)
|
||||
{
|
||||
if (enable)
|
||||
nb_cli_enqueue_change(vty, "./proxy", NB_OP_MODIFY, "true");
|
||||
else
|
||||
nb_cli_enqueue_change(vty, "./proxy", NB_OP_DESTROY, NULL);
|
||||
|
||||
return nb_cli_apply_changes(vty, FRR_GMP_INTERFACE_XPATH,
|
||||
FRR_PIM_AF_XPATH_VAL);
|
||||
}
|
||||
|
||||
int pim_process_ip_mroute_cmd(struct vty *vty, const char *interface,
|
||||
const char *group_str, const char *source_str)
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ int pim_process_no_ip_pim_hello_cmd(struct vty *vty);
|
|||
int pim_process_ip_pim_activeactive_cmd(struct vty *vty, const char *no);
|
||||
int pim_process_ip_pim_boundary_oil_cmd(struct vty *vty, const char *oil);
|
||||
int pim_process_no_ip_pim_boundary_oil_cmd(struct vty *vty);
|
||||
int pim_process_ip_gmp_proxy_cmd(struct vty *vty, bool enable);
|
||||
int pim_process_ip_mroute_cmd(struct vty *vty, const char *interface,
|
||||
const char *group_str, const char *source_str);
|
||||
int pim_process_no_ip_mroute_cmd(struct vty *vty, const char *interface,
|
||||
|
|
|
@ -270,6 +270,11 @@ static int gm_config_write(struct vty *vty, int writes,
|
|||
++writes;
|
||||
}
|
||||
|
||||
if (pim_ifp->gm_proxy) {
|
||||
vty_out(vty, " ip igmp proxy\n");
|
||||
++writes;
|
||||
}
|
||||
|
||||
/* ip igmp version */
|
||||
if (pim_ifp->igmp_version != IGMP_DEFAULT_VERSION) {
|
||||
vty_out(vty, " ip igmp version %d\n", pim_ifp->igmp_version);
|
||||
|
|
Loading…
Reference in a new issue