Commit 8f985e9c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add ipport_next to nodes table for doing per-node ipport allocation.

Will replace the older nodeipportnum table (trafgens, vtund, etc).

Add new ipport_ranges table. This table is for allocating a small
range of ports to an experiment, which will be owned by the experiment
and consistent across add jailed nodes in the experiment. Indexed by
pid,eid it holds the low and high port numbers.
parent 031f0d3a
......@@ -348,6 +348,18 @@ CREATE TABLE interfaces (
KEY mac (mac)
# Table structure for table 'ipport_ranges'
CREATE TABLE ipport_ranges (
eid varchar(32) NOT NULL default '',
pid varchar(12) NOT NULL default '',
low int(11) NOT NULL default '0',
high int(11) NOT NULL default '0',
PRIMARY KEY (eid,pid)
# Table structure for table 'ipsubnets'
......@@ -565,6 +577,7 @@ CREATE TABLE nodes (
osid varchar(35) NOT NULL default '',
ntpdrift float default NULL,
ipport_low int(11) NOT NULL default '11000',
ipport_next int(11) NOT NULL default '11000',
ipport_high int(11) NOT NULL default '20000',
jailflag tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (node_id)
Supports Markdown
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