summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2017-09-07 17:08:09 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2017-10-03 18:15:20 +0200
commit43b8d1d8a1fd9446231c53ce1e59e96a6afc3c81 (patch)
tree9525c452c8a38be2dca2c8b8147d491f98b0a78b /ospfd/ospf_te.c
parentospfd: fix clang warning & ci-ospf test (diff)
downloadfrr-43b8d1d8a1fd9446231c53ce1e59e96a6afc3c81.tar.xz
frr-43b8d1d8a1fd9446231c53ce1e59e96a6afc3c81.zip
ospfd: OSPFv2 VRF Changes II
Accomodate review comments Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index 4d6fc37e7..294ffe48b 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -2570,10 +2570,13 @@ DEFUN (show_ip_ospf_mpls_te_link,
}
/* Show All Interfaces. */
if (argc == 5) {
- ospf = ospf_lookup_by_vrf_id(VRF_DEFAULT);
- for (ALL_LIST_ELEMENTS(vrf_iflist(ospf->vrf_id), node, nnode,
- ifp))
- show_mpls_te_link_sub(vty, ifp);
+ for (ALL_LIST_ELEMENTS_RO(om->ospf, n1, ospf)) {
+ if (!ospf->oi_running)
+ continue;
+ for (ALL_LIST_ELEMENTS(vrf_iflist(ospf->vrf_id), node,
+ nnode, ifp))
+ show_mpls_te_link_sub(vty, ifp);
+ }
}
/* Interface name is specified. */
else {