summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-08 15:16:14 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-04-08 19:15:59 +0200
commitb2d7c082a2ec76e34c5ec528ac649e185d035616 (patch)
tree256011582e089e5ff80d0ec87ea8ea5d0d5a35f3 /ospfd/ospf_te.c
parentlib, zebra: Rename ZEBRA_VRF_ACTIVE (diff)
downloadfrr-b2d7c082a2ec76e34c5ec528ac649e185d035616.tar.xz
frr-b2d7c082a2ec76e34c5ec528ac649e185d035616.zip
quagga: Remove iflist global variable
The file if.c has a iflist that had the list of interfaces in the default vrf. Remove this variable and replace with a vrf_iflist lookup on the default vrf where it was used. Additionally, modify ptm code to iterate over all vrf's when enabling ptm. Ticket: CM-10338 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index 6f19a2832..565a61aaa 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -33,6 +33,7 @@
#include "linklist.h"
#include "prefix.h"
+#include "vrf.h"
#include "if.h"
#include "table.h"
#include "memory.h"
@@ -1890,7 +1891,7 @@ DEFUN (show_mpls_te_link,
/* Show All Interfaces. */
if (argc == 0)
{
- for (ALL_LIST_ELEMENTS (iflist, node, nnode, ifp))
+ for (ALL_LIST_ELEMENTS (vrf_iflist (VRF_DEFAULT), node, nnode, ifp))
show_mpls_te_link_sub (vty, ifp);
}
/* Interface name is specified. */