mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 07:48:38 +00:00
pimd: Add code to allow backwards compatibility
This code change adds the ability to specify that we should be able to work with older versions of PIM. In future commits we will actually use this data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
34687162ce
commit
71bbe73dc4
@ -3509,6 +3509,31 @@ DEFUN (no_ip_pim_packets,
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN (ip_pim_v6_secondary,
|
||||
ip_pim_v6_secondary_cmd,
|
||||
"ip pim send-v6-secondary",
|
||||
IP_STR
|
||||
"pim multicast routing\n"
|
||||
"Send v6 secondary addresses\n")
|
||||
{
|
||||
pimg->send_v6_secondary = 1;
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN (no_ip_pim_v6_secondary,
|
||||
no_ip_pim_v6_secondary_cmd,
|
||||
"no ip pim send-v6-secondary",
|
||||
NO_STR
|
||||
IP_STR
|
||||
"pim multicast routing\n"
|
||||
"Send v6 secondary addresses\n")
|
||||
{
|
||||
pimg->send_v6_secondary = 0;
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN (ip_pim_rp,
|
||||
ip_pim_rp_cmd,
|
||||
"ip pim rp A.B.C.D [A.B.C.D/M]",
|
||||
@ -6037,6 +6062,8 @@ void pim_cmd_init()
|
||||
install_element (CONFIG_NODE, &no_ip_pim_keep_alive_cmd);
|
||||
install_element (CONFIG_NODE, &ip_pim_packets_cmd);
|
||||
install_element (CONFIG_NODE, &no_ip_pim_packets_cmd);
|
||||
install_element (CONFIG_NODE, &ip_pim_v6_secondary_cmd);
|
||||
install_element (CONFIG_NODE, &no_ip_pim_v6_secondary_cmd);
|
||||
install_element (CONFIG_NODE, &ip_ssmpingd_cmd);
|
||||
install_element (CONFIG_NODE, &no_ip_ssmpingd_cmd);
|
||||
install_element (CONFIG_NODE, &ip_msdp_peer_cmd);
|
||||
|
@ -148,6 +148,12 @@ int pim_global_config_write(struct vty *vty)
|
||||
|
||||
writes += pim_msdp_config_write (vty);
|
||||
|
||||
if (!pimg->send_v6_secondary)
|
||||
{
|
||||
vty_out (vty, "no ip pim send-v6-secondary%s", VTY_NEWLINE);
|
||||
++writes;
|
||||
}
|
||||
|
||||
writes += pim_rp_config_write (vty);
|
||||
|
||||
if (qpim_register_suppress_time != PIM_REGISTER_SUPPRESSION_TIME_DEFAULT)
|
||||
|
@ -109,6 +109,8 @@ pim_vrf_enable (struct vrf *vrf)
|
||||
if (pimg == NULL)
|
||||
zlog_err ("%s %s: pim class init failure ", __FILE__,
|
||||
__PRETTY_FUNCTION__);
|
||||
|
||||
pimg->send_v6_secondary = 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -240,6 +240,8 @@ struct pim_instance
|
||||
afi_t afi;
|
||||
vrf_id_t vrf_id;
|
||||
struct hash *rpf_hash;
|
||||
|
||||
int send_v6_secondary;
|
||||
};
|
||||
|
||||
extern struct pim_instance *pimg; //Pim Global Instance
|
||||
|
Loading…
Reference in New Issue
Block a user