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-stable
Commits
0b056d93
Commit
0b056d93
authored
Jan 12, 2005
by
Robert Ricci
Browse files
Allow a switch to be in more than one stack at a time, as in a switch
that is both in the experimental and control nets.
parent
16fd118f
Changes
3
Hide whitespace changes
Inline
Side-by-side
doc/setup-db.txt
View file @
0b056d93
...
...
@@ -211,7 +211,8 @@ max_vlan: Ditto, but the biggest number. Defaults to 1000.
Finally, add switches to these stacks by putting entries in the switch_stacks
table, listing the node_id of each switch and the stack_id of the stack it
belongs to.
belongs to. You can leave the 'is_primary' column of these rows with its default
value (1).
##### Step 4 - Setup control hardware
##### Local Only
...
...
sql/database-create.sql
View file @
0b056d93
...
...
@@ -1517,7 +1517,8 @@ CREATE TABLE switch_stack_types (
CREATE
TABLE
switch_stacks
(
node_id
varchar
(
32
)
NOT
NULL
default
''
,
stack_id
varchar
(
32
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
node_id
)
is_primary
tinyint
(
1
)
NOT
NULL
default
'1'
,
KEY
node_id
(
node_id
)
)
TYPE
=
MyISAM
;
--
...
...
sql/database-migrate.txt
View file @
0b056d93
...
...
@@ -2311,3 +2311,10 @@ last_net_act,last_cpu_act,last_ext_act);
cd <your_build_tree>/firewall
gmake insertrules
1.300: Allow a switch to be in multiple stacks, and add a column that records
of the memberships is the primary one.
alter table switch_stacks drop primary key;
alter table switch_stacks add index (node_id);
alter table switch_stacks add column (is_primary tinyint(1) not null default '1');
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