summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorradhika <radhika@cumulusnetworks.com>2017-08-01 10:10:35 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-08 19:24:15 -0400
commita2023fab273dd7cf34a3a9fed1361b7c25c65bb0 (patch)
tree53be8ec4713834452dc26341597ecb81b2b1e840
parent6c0a6053555440eda670c3fbc4238b45f625f4db (diff)
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>
-rw-r--r--zebra/zebra_ptm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index 07e81aa020..d20f93f521 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -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;
}