Commit 488c361b authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Flush is_primary for per-experiment stacks; Rob says it is obsolete.

parent fd86599f
...@@ -2665,11 +2665,6 @@ sub AddPerExperimentSwitchStack($$$$$@) { ...@@ -2665,11 +2665,6 @@ sub AddPerExperimentSwitchStack($$$$$@) {
DBQueryFatal($query); DBQueryFatal($query);
foreach my $switch (@switches) { foreach my $switch (@switches) {
my $is_primary = 0;
if ($switch eq $leader) {
$is_primary = 1;
}
# for each switch, if the caller didn't supply snmp_community, then # for each switch, if the caller didn't supply snmp_community, then
# check node_type_attributes to see if there is a fixed community we # check node_type_attributes to see if there is a fixed community we
# must use -- i.e., if we can't reconfig this switch with a generated # must use -- i.e., if we can't reconfig this switch with a generated
...@@ -2686,8 +2681,9 @@ sub AddPerExperimentSwitchStack($$$$$@) { ...@@ -2686,8 +2681,9 @@ sub AddPerExperimentSwitchStack($$$$$@) {
} }
} }
DBQueryFatal("replace into switch_stacks (node_id,stack_id,is_primary,snmp_community)" . DBQueryFatal("replace into switch_stacks ".
" values ('$switch','$stack_id',$is_primary,'$scomm')"); " (node_id,stack_id,is_primary,snmp_community)" .
" values ('$switch','$stack_id','1','$scomm')");
} }
return 0; return 0;
......
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