Commit ecc16aab authored by Leigh B. Stoller's avatar Leigh B. Stoller

Change the current_speed enum in the interfaces table to allow "0" as

a legal value; when interfaces are not in use, set the speed to 0.
parent 4c0cff6c
......@@ -526,7 +526,7 @@ CREATE TABLE interfaces (
interface_type varchar(30) default NULL,
iface text NOT NULL,
role enum('ctrl','expt','jail','fake','other','gw') default NULL,
current_speed enum('100','10','1000') NOT NULL default '100',
current_speed enum('0','10','100','1000') NOT NULL default '100',
duplex enum('full','half') NOT NULL default 'full',
rtabid smallint(5) unsigned NOT NULL default '0',
vnode_id varchar(32) default NULL,
......
......@@ -1734,3 +1734,10 @@ last_net_act,last_cpu_act,last_ext_act);
alter table experiments add modelnetedge_osname varchar(20) \
default NULL after modelnetcore_osname;
1.262: Change the current_speed enum in the interfaces table to allow "0"
as a legal value; when interfaces are not in use, set the speed
to 0.
alter table interfaces change current_speed \
current_speed enum('0','10','100','1000') \
NOT NULL default '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