Commit 92f70375 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Replace card with iface in join with wires.

parent 15d24b96
<?php <?php
# #
# Copyright (c) 2006-2016 University of Utah and the Flux Group. # Copyright (c) 2006-2017 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -1145,8 +1145,9 @@ class Node ...@@ -1145,8 +1145,9 @@ class Node
if (!$noperm) { if (!$noperm) {
$query_result = $query_result =
DBQueryFatal("select i.*,w.* from interfaces as i ". DBQueryFatal("select i.*,w.* from interfaces as i ".
"left join wires as w on i.node_id=w.node_id1 ". "left join wires as w on ".
" and i.card=w.card1 and i.port=w.port1 ". " i.node_id=w.node_id1 and ".
" i.iface=w.iface1 ".
"where i.node_id='$node_id' and ". "where i.node_id='$node_id' and ".
" w.node_id1 is not null ". " w.node_id1 is not null ".
"order by iface"); "order by iface");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment