Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
c47c44fd
Commit
c47c44fd
authored
Jul 15, 2003
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add information about where the interface is connected to the switch
to the new_interfaces table.
parent
48009b52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
sql/database-create.sql
sql/database-create.sql
+3
-0
sql/database-migrate.txt
sql/database-migrate.txt
+7
-0
No files found.
sql/database-create.sql
View file @
c47c44fd
...
...
@@ -571,6 +571,9 @@ CREATE TABLE new_interfaces (
iface
varchar
(
10
)
NOT
NULL
default
''
,
mac
varchar
(
12
)
NOT
NULL
default
''
,
interface_type
varchar
(
15
)
default
NULL
,
switch_id
varchar
(
10
)
default
NULL
,
switch_card
tinyint
(
3
)
default
NULL
,
switch_port
tinyint
(
3
)
default
NULL
,
PRIMARY
KEY
(
new_node_id
,
iface
)
)
TYPE
=
MyISAM
;
...
...
sql/database-migrate.txt
View file @
c47c44fd
...
...
@@ -763,3 +763,10 @@ last_net_act,last_cpu_act,last_ext_act);
create table node_type_features (type varchar(30) not null,
feature varchar(30) not null, weight float not null default 0.0,
primary key (type,feature));
1.162: Add columns to the new_interfaces table indicating where the interface
is plugged into a switch:
alter table new_interfaces add column switch_id char(10);
alter table new_interfaces add column switch_card tinyint(3);
alter table new_interfaces add column switch_port tinyint(3);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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