mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 04:50:29 +00:00
pim6d: Adding "[no] ipv6 pim active-active" cli
This cli used to mark the interface as active-active. Signed-off-by: sarita patra <saritap@vmware.com>
This commit is contained in:
parent
e6aab61395
commit
7e01b641ae
@ -277,6 +277,17 @@ DEFPY (interface_no_ipv6_pim_hello,
|
|||||||
return pim_process_no_ip_pim_hello_cmd(vty);
|
return pim_process_no_ip_pim_hello_cmd(vty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFPY (interface_ipv6_pim_activeactive,
|
||||||
|
interface_ipv6_pim_activeactive_cmd,
|
||||||
|
"[no] ipv6 pim active-active",
|
||||||
|
NO_STR
|
||||||
|
IPV6_STR
|
||||||
|
PIM_STR
|
||||||
|
"Mark interface as Active-Active for MLAG operations\n")
|
||||||
|
{
|
||||||
|
return pim_process_ip_pim_activeactive_cmd(vty, no);
|
||||||
|
}
|
||||||
|
|
||||||
void pim_cmd_init(void)
|
void pim_cmd_init(void)
|
||||||
{
|
{
|
||||||
if_cmd_init(pim_interface_config_write);
|
if_cmd_init(pim_interface_config_write);
|
||||||
@ -301,4 +312,5 @@ void pim_cmd_init(void)
|
|||||||
install_element(INTERFACE_NODE, &interface_no_ipv6_pim_drprio_cmd);
|
install_element(INTERFACE_NODE, &interface_no_ipv6_pim_drprio_cmd);
|
||||||
install_element(INTERFACE_NODE, &interface_ipv6_pim_hello_cmd);
|
install_element(INTERFACE_NODE, &interface_ipv6_pim_hello_cmd);
|
||||||
install_element(INTERFACE_NODE, &interface_no_ipv6_pim_hello_cmd);
|
install_element(INTERFACE_NODE, &interface_no_ipv6_pim_hello_cmd);
|
||||||
|
install_element(INTERFACE_NODE, &interface_ipv6_pim_activeactive_cmd);
|
||||||
}
|
}
|
||||||
|
@ -8062,20 +8062,7 @@ DEFPY (interface_ip_pim_activeactive,
|
|||||||
PIM_STR
|
PIM_STR
|
||||||
"Mark interface as Active-Active for MLAG operations, Hidden because not finished yet\n")
|
"Mark interface as Active-Active for MLAG operations, Hidden because not finished yet\n")
|
||||||
{
|
{
|
||||||
if (no)
|
return pim_process_ip_pim_activeactive_cmd(vty, no);
|
||||||
nb_cli_enqueue_change(vty, "./active-active", NB_OP_MODIFY,
|
|
||||||
"false");
|
|
||||||
else {
|
|
||||||
nb_cli_enqueue_change(vty, "./pim-enable", NB_OP_MODIFY,
|
|
||||||
"true");
|
|
||||||
|
|
||||||
nb_cli_enqueue_change(vty, "./active-active", NB_OP_MODIFY,
|
|
||||||
"true");
|
|
||||||
}
|
|
||||||
|
|
||||||
return nb_cli_apply_changes(vty,
|
|
||||||
FRR_PIM_INTERFACE_XPATH,
|
|
||||||
"frr-routing:ipv4");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFUN_HIDDEN (interface_ip_pim_ssm,
|
DEFUN_HIDDEN (interface_ip_pim_ssm,
|
||||||
|
@ -425,3 +425,20 @@ int pim_process_no_ip_pim_hello_cmd(struct vty *vty)
|
|||||||
return nb_cli_apply_changes(vty, FRR_PIM_INTERFACE_XPATH,
|
return nb_cli_apply_changes(vty, FRR_PIM_INTERFACE_XPATH,
|
||||||
FRR_PIM_AF_XPATH_VAL);
|
FRR_PIM_AF_XPATH_VAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int pim_process_ip_pim_activeactive_cmd(struct vty *vty, const char *no)
|
||||||
|
{
|
||||||
|
if (no)
|
||||||
|
nb_cli_enqueue_change(vty, "./active-active", NB_OP_MODIFY,
|
||||||
|
"false");
|
||||||
|
else {
|
||||||
|
nb_cli_enqueue_change(vty, "./pim-enable", NB_OP_MODIFY,
|
||||||
|
"true");
|
||||||
|
|
||||||
|
nb_cli_enqueue_change(vty, "./active-active", NB_OP_MODIFY,
|
||||||
|
"true");
|
||||||
|
}
|
||||||
|
|
||||||
|
return nb_cli_apply_changes(vty, FRR_PIM_INTERFACE_XPATH,
|
||||||
|
FRR_PIM_AF_XPATH_VAL);
|
||||||
|
}
|
||||||
|
@ -43,5 +43,6 @@ int pim_process_no_ip_pim_drprio_cmd(struct vty *vty);
|
|||||||
int pim_process_ip_pim_hello_cmd(struct vty *vty, const char *hello_str,
|
int pim_process_ip_pim_hello_cmd(struct vty *vty, const char *hello_str,
|
||||||
const char *hold_str);
|
const char *hold_str);
|
||||||
int pim_process_no_ip_pim_hello_cmd(struct vty *vty);
|
int pim_process_no_ip_pim_hello_cmd(struct vty *vty);
|
||||||
|
int pim_process_ip_pim_activeactive_cmd(struct vty *vty, const char *no);
|
||||||
|
|
||||||
#endif /* PIM_CMD_COMMON_H */
|
#endif /* PIM_CMD_COMMON_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user