Commit d05f2d81 authored by Leigh Stoller's avatar Leigh Stoller

Fix minor bug when setting red/gred params on a duplex link.

parent e50a9082
......@@ -571,14 +571,17 @@ sub ChangeVirtLans() {
}
DBQueryFatal($query_string);
$query_string = "update virt_lans set ".
join(",", @query_clauses2) .
" where pid='$pid' and eid='$eid' and ".
" vname='$link' and member not like '${srcvnode}:%'";
if (@query_clauses2) {
$query_string =
"update virt_lans set ".
join(",", @query_clauses2) .
" where pid='$pid' and eid='$eid' and ".
" vname='$link' and member not like '${srcvnode}:%'";
if ($debug) {
print "$query_string\n";
if ($debug) {
print "$query_string\n";
}
DBQueryFatal($query_string);
}
DBQueryFatal($query_string);
}
}
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