Commit 5e6333f1 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Replace card,port with iface.

parent fd87aaa1
...@@ -1024,13 +1024,12 @@ sub DumpDBGoo() ...@@ -1024,13 +1024,12 @@ sub DumpDBGoo()
# But we need to take out the wires that are being used as the # But we need to take out the wires that are being used as the
# inner control network, or at least mark them as Control. # inner control network, or at least mark them as Control.
$query_result = $query_result =
DBQueryWarn("select node_id,card,port from temp_interfaces ". DBQueryWarn("select node_id,iface from temp_interfaces ".
"where role='" . TBDB_IFACEROLE_CONTROL() . "' "); "where role='" . TBDB_IFACEROLE_CONTROL() . "' ");
while (my ($node_id,$card,$port) = $query_result->fetchrow_array()) { while (my ($node_id,$iface) = $query_result->fetchrow_array()) {
DBQueryWarn("update temp_wires set type='Control' ". DBQueryWarn("update temp_wires set type='Control' ".
"where node_id1='$node_id' and card1=$card and ". "where node_id1='$node_id' iface1='$iface1'");
" port1=$port");
} }
} }
# Okay, now add the "trunk" wires in without any alteration. # Okay, now add the "trunk" wires in without any alteration.
......
Supports Markdown
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