Commit 2571d98e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Various elabinelab and firewall related changes to the schema.

parent 8934c295
......@@ -1370,6 +1370,7 @@ CREATE TABLE reserved (
old_pid varchar(12) NOT NULL default '',
old_eid varchar(32) NOT NULL default '',
cnet_vlan int(11) default NULL,
inner_elab_role enum('boss','ops','node') default NULL,
PRIMARY KEY (node_id),
UNIQUE KEY vname (pid,eid,vname),
KEY old_pid (old_pid,old_eid)
......
......@@ -612,6 +612,7 @@ REPLACE INTO table_regex VALUES ('experiments','jail_osname','text','redirect','
REPLACE INTO table_regex VALUES ('experiments','delay_osname','text','redirect','os_info:osname',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','use_ipassign','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('experiments','ipassign_args','text','regex','^[\\w\\s-]*$',0,255,NULL);
REPLACE INTO table_regex VALUES ('experiments','security_level','int','redirect','default:tinyuint',0,4,NULL);
REPLACE INTO table_regex VALUES ('nodes','bios_version','text','regex','^[-\\w\\.+]+$',0,64,NULL);
REPLACE INTO table_regex VALUES ('os_info','osid','text','regex','^[-\\w\\.+]+$',2,35,NULL);
REPLACE INTO table_regex VALUES ('experiments','expt_name','text','redirect','default:tinytext',1,255,NULL);
......
......@@ -2160,3 +2160,7 @@ last_net_act,last_cpu_act,last_ext_act);
unsigned default NULL after elabinelab;
alter table experiment_stats add security_level tinyint(1) NOT NULL \
default '0' after elabinelab_exptidx;
alter table reserved add \
inner_elab_role enum('boss','ops','node') default NULL \
after cnet_vlan;
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