summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorradhika <radhika@cumulusnetworks.com>2017-08-01 19:10:35 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-09 01:24:15 +0200
commita2023fab273dd7cf34a3a9fed1361b7c25c65bb0 (patch)
tree53be8ec4713834452dc26341597ecb81b2b1e840 /zebra/zebra_ptm.c
parentbgpd: Fix VRF route leaking for multipath routes (diff)
downloadfrr-a2023fab273dd7cf34a3a9fed1361b7c25c65bb0.tar.xz
frr-a2023fab273dd7cf34a3a9fed1361b7c25c65bb0.zip
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>
Diffstat (limited to '')
-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 07e81aa02..d20f93f52 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;
}