mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 00:51:52 +00:00
Zebra: Fix ptm-enable config failure on internally created interfaces
Ticket: CM-15658 Reviewed By: CCR-6534 Testing Done: Unit Issue: frr ptm-enable command not working for interfaces that have been created by frr as a place holder. Root Cause: The ptm-enable on interface configuration was not getting stored when the interface was internally created by frr. Fix: Store the ptm-enable configuration even if the interface is internally created. Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
This commit is contained in:
parent
6c0a605355
commit
a2023fab27
@ -298,6 +298,9 @@ DEFUN (zebra_ptm_enable_if,
|
||||
int old_ptm_enable;
|
||||
int send_linkdown = 0;
|
||||
|
||||
if_data = ifp->info;
|
||||
if_data->ptm_enable = ZEBRA_IF_PTM_ENABLE_UNSPEC;
|
||||
|
||||
if (ifp->ifindex == IFINDEX_INTERNAL) {
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
@ -317,9 +320,6 @@ DEFUN (zebra_ptm_enable_if,
|
||||
}
|
||||
}
|
||||
|
||||
if_data = ifp->info;
|
||||
if_data->ptm_enable = ZEBRA_IF_PTM_ENABLE_UNSPEC;
|
||||
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user