Commit 451dfa08 authored by Leigh Stoller's avatar Leigh Stoller

Add veth_interfaces table for configuring new veth virtual interfaces.

Unlike the interfaces table, veth interfaces come and go with
experiment swapin and swapout, with assignment to be done in
assign_wrapper. However, each veth maps to a real interface on a node,
as defined in the interfaces table, and the cross link is the "iface"
slot. There is a "mac" address since veth devices need a MAC, but I'm
not sure how that will be assigned yet. I am letting the DB do the
allocation of veth ids by making it an auto_increment field, and a
dual key of (node_id, veth_id). So, the DB will assign increasing
values per node_id, not globally to the table. Very slick.
parent 8f5763bd
......@@ -1306,6 +1306,20 @@ CREATE TABLE v2pmap (
PRIMARY KEY (pid,eid,vname)
) TYPE=MyISAM;
--
-- Table structure for table 'veth_interfaces'
--
CREATE TABLE veth_interfaces (
node_id varchar(10) NOT NULL default '',
veth_id int(10) unsigned NOT NULL auto_increment,
mac varchar(12) NOT NULL default '000000000000',
IP varchar(15) default NULL,
iface varchar(10) NOT NULL default '',
PRIMARY KEY (node_id,veth_id),
KEY IP (IP)
) TYPE=MyISAM;
--
-- Table structure for table 'virt_agents'
--
......
......@@ -388,3 +388,16 @@ last_net_act,last_cpu_act,last_ext_act);
user_stats.
drop table lastlogin;
1.139: Add veth_interfaces table, which are virtual ethernet devices
in FreeBSD.
CREATE TABLE veth_interfaces (
node_id varchar(10) NOT NULL default '',
veth_id int(10) unsigned NOT NULL auto_increment,
mac varchar(12) NOT NULL default '000000000000',
IP varchar(15) default NULL,
iface varchar(10) NOT NULL default '',
PRIMARY KEY (node_id,veth_id),
KEY IP (IP)
) TYPE=MyISAM;
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