Commit 8ab6006d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add another role for interfaces; an outer control network role,

used for ElabinElab.
parent 8466c7f9
...@@ -185,7 +185,7 @@ use vars qw(@ISA @EXPORT); ...@@ -185,7 +185,7 @@ use vars qw(@ISA @EXPORT);
TBDB_IFACEROLE_CONTROL TBDB_IFACEROLE_EXPERIMENT TBDB_IFACEROLE_CONTROL TBDB_IFACEROLE_EXPERIMENT
TBDB_IFACEROLE_JAIL TBDB_IFACEROLE_FAKE TBDB_IFACEROLE_OTHER TBDB_IFACEROLE_JAIL TBDB_IFACEROLE_FAKE TBDB_IFACEROLE_OTHER
TBDB_IFACEROLE_GW TBDB_IFACEROLE_GW TBDB_IFACEROLE_OUTER_CONTROL
TBDB_ROUTERTYPE_NONE TBDB_ROUTERTYPE_OSPF TBDB_ROUTERTYPE_NONE TBDB_ROUTERTYPE_OSPF
TBDB_ROUTERTYPE_STATIC TBDB_ROUTERTYPE_MANUAL TBDB_ROUTERTYPE_STATIC TBDB_ROUTERTYPE_MANUAL
...@@ -586,6 +586,7 @@ sub TBDB_IFACEROLE_JAIL() { "jail"; } ...@@ -586,6 +586,7 @@ sub TBDB_IFACEROLE_JAIL() { "jail"; }
sub TBDB_IFACEROLE_FAKE() { "fake"; } sub TBDB_IFACEROLE_FAKE() { "fake"; }
sub TBDB_IFACEROLE_GW() { "gw"; } sub TBDB_IFACEROLE_GW() { "gw"; }
sub TBDB_IFACEROLE_OTHER() { "other"; } sub TBDB_IFACEROLE_OTHER() { "other"; }
sub TBDB_IFACEROLE_OUTER_CONTROL(){ "outer_ctrl"; }
# Routertypes. # Routertypes.
sub TBDB_ROUTERTYPE_NONE() { "none"; } sub TBDB_ROUTERTYPE_NONE() { "none"; }
......
...@@ -595,7 +595,7 @@ CREATE TABLE interfaces ( ...@@ -595,7 +595,7 @@ CREATE TABLE interfaces (
mask varchar(15) default NULL, mask varchar(15) default NULL,
interface_type varchar(30) default NULL, interface_type varchar(30) default NULL,
iface text NOT NULL, iface text NOT NULL,
role enum('ctrl','expt','jail','fake','other','gw') default NULL, role enum('ctrl','expt','jail','fake','other','gw','outer_ctrl') default NULL,
current_speed enum('0','10','100','1000') NOT NULL default '0', current_speed enum('0','10','100','1000') NOT NULL default '0',
duplex enum('full','half') NOT NULL default 'full', duplex enum('full','half') NOT NULL default 'full',
rtabid smallint(5) unsigned NOT NULL default '0', rtabid smallint(5) unsigned NOT NULL default '0',
......
...@@ -2090,3 +2090,11 @@ last_net_act,last_cpu_act,last_ext_act); ...@@ -2090,3 +2090,11 @@ last_net_act,last_cpu_act,last_ext_act);
alter table nodes add cnet_vlan int(11) default NULL; alter table nodes add cnet_vlan int(11) default NULL;
alter table firewalls add index(vlan); alter table firewalls add index(vlan);
1.270: Add another role for interfaces; an outer control network role,
used for ElabinElab.
alter table interfaces change role role \
enum('ctrl','expt','jail','fake','other','gw','outer_ctrl') \
default NULL;
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