]> git.proxmox.com Git - mirror_frr.git/blobdiff - isisd/isis_te.c
*: use rb-trees to store interfaces instead of sorted linked-lists
[mirror_frr.git] / isisd / isis_te.c
index 5a4fe82c914bae8c75f6b20bf3437b97b4c72db1..dda5781c2cbc495847707951a60b937129c6705a 100644 (file)
@@ -1245,13 +1245,13 @@ DEFUN (show_isis_mpls_te_interface,
        "Interface information\n"
        "Interface name\n")
 {
+       struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        int idx_interface = 4;
        struct interface *ifp;
-       struct listnode *node;
 
        /* Show All Interfaces. */
        if (argc == 4) {
-               for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp))
+               RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name)
                        show_mpls_te_sub(vty, ifp);
        }
        /* Interface name is specified. */