Commit f135521c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add virt_lans,layer to table_regex.

parent 2ef782c2
......@@ -680,7 +680,7 @@ REPLACE INTO table_regex VALUES ('virt_lans','trace_db','int','redirect','defaul
REPLACE INTO table_regex VALUES ('virt_lans','fixed_iface','text','redirect','default:tinytext',0,128,NULL);
REPLACE INTO table_regex VALUES ('virt_lans','modbase','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_lans','compat','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_lans','layer','int','redirect','default:tinyint',1,2,NULL);
REPLACE INTO table_regex VALUES ('virt_node_desires','pid','text','redirect','projects:pid',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_node_desires','eid','text','redirect','experiments:eid',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_node_desires','vname','text','redirect','virt_nodes:vname',0,0,NULL);
......
......@@ -12,6 +12,9 @@ sub DoUpdate($$$)
DBQueryFatal("alter table virt_lans add ".
" `layer` tinyint(4) NOT NULL default '2'");
}
DBQueryFatal("replace into table_regex values ".
" ('virt_lans','layer','int','redirect', ".
" 'default:tinyint',1,2,NULL)");
return 0;
}
1;
......
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