Skip to content

Commit

Permalink
Zebra: Fix ptm-enable config failure on internally created interfaces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
RadhikaMahankali committed Aug 1, 2017
1 parent cb4abe8 commit e041558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zebra/zebra_ptm.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,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;
}
Expand All @@ -320,9 +323,6 @@ DEFUN (zebra_ptm_enable_if,
}
}

if_data = ifp->info;
if_data->ptm_enable = ZEBRA_IF_PTM_ENABLE_UNSPEC;

return CMD_SUCCESS;
}

Expand Down

0 comments on commit e041558

Please sign in to comment.