Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
488c361b
Commit
488c361b
authored
Aug 07, 2017
by
Leigh B Stoller
Browse files
Flush is_primary for per-experiment stacks; Rob says it is obsolete.
parent
fd86599f
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/libdb.pm.in
View file @
488c361b
...
...
@@ -2665,11 +2665,6 @@ sub AddPerExperimentSwitchStack($$$$$@) {
DBQueryFatal
($
query
);
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
# 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
...
...
@@ -2686,8 +2681,9 @@ sub AddPerExperimentSwitchStack($$$$$@) {
}
}
DBQueryFatal
(
"replace into switch_stacks (node_id,stack_id,is_primary,snmp_community)"
.
" values ('$switch','$stack_id',$is_primary,'$scomm')"
);
DBQueryFatal
(
"replace into switch_stacks "
.
" (node_id,stack_id,is_primary,snmp_community)"
.
" values ('$switch','$stack_id','1','$scomm')"
);
}
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment