<% _.each(wires, function(info) { %> <% }); %>
Type ID Len Node Iface Role Type Node Iface Role Type
<%- info.wire_type %> <% if (info.wire_id) { %><%- info.wire_id %><% } %> <% if (info.wire_length != 0) { %> <%- info.wire_length %><% } %> <% var url = "show-node.php?node_id=" + info.node_id1; if (info.isswitch1) { url = url + "#" + info.card1 + ":" + info.port1; } %> <%- info.node_id1 %> <%- info.iface1 %> <% if (info.isswitch1) { %> (<%- info.card1 %>,<%- info.port1 %>) <% } %> <%- info.role1 %> <%- info.type1 %> <% var url = "show-node.php?node_id=" + info.node_id2; if (info.isswitch2) { url = url + "#" + info.card2 + ":" + info.port2; } %> <%- info.node_id2 %> <%- info.iface2 %> <% if (info.isswitch2) { %> (<%- info.card2 %>,<%- info.port2 %>) <% } %> <%- info.role2 %> <%- info.type2 %>