• Leigh Stoller's avatar
    Add slots to virt_lans to rationalize the relationship between · 43a804e9
    Leigh Stoller authored
    virt_lans and virt_nodes. The intent is to migrate away from
    the convention we use in virt_nodes:ips and virt_lans:member
    to a more acceptable representation (one that does not rely
    on textual conventions like space separated lists of colon
    seperated entities. Instead:
    
    	virt_nodes
    		vname:	nodeA
            virt_lans
    		vname:  link0
    		vport:  0
    		ip:     1.1.1.2
    
    		vname:  link1
    		vport:  1
    		ip:     1.1.2.2
    
    	alter table virt_lans add vnode varchar(32) NOT NULL default '' \
    		after vname;
    	alter table virt_lans add vport tinyint(3) NOT NULL default '0' \
    		after vnode;
            alter table virt_lans add ip varchar(15) NOT NULL default '' \
    		after vport;
    
    Then run this script to update these new fields from the
    existing ips,member slots. This must be run after installing
    the parser changes, or you can just run it again.
    
    	./ipmember.pl
    
    This is a transitional phase; the old slots will be left in place
    until they are no longer used, at which time we will also add a
    unique key to the table (pid,eid,vname,vnode,vport). assign_wrapper
    will be the hardest to change, but other scripts should be easy.
    
    Whats vport about? Rather then rely on IP addresses to form a
    unique key, we use vport (a small integer) so that we can delay the
    IP assignment until later (after initial DB insertion).
    43a804e9
Name
Last commit
Last update
account Loading commit data...
apache Loading commit data...
assign Loading commit data...
autoconf Loading commit data...
capture Loading commit data...
cdrom Loading commit data...
db Loading commit data...
delay/linux Loading commit data...
dhcpd Loading commit data...
discvr Loading commit data...
doc Loading commit data...
event Loading commit data...
hw_config Loading commit data...
hyperviewer Loading commit data...
install Loading commit data...
ipod Loading commit data...
lib Loading commit data...
os Loading commit data...
patches Loading commit data...
pxe Loading commit data...
rc.d Loading commit data...
rpms Loading commit data...
security Loading commit data...
sensors Loading commit data...
sql Loading commit data...
ssl Loading commit data...
sysadmin Loading commit data...
tbsetup Loading commit data...
testsuite Loading commit data...
tip Loading commit data...
tmcd Loading commit data...
tools Loading commit data...
utils Loading commit data...
vis Loading commit data...
www Loading commit data...
xmlrpc Loading commit data...
BUGS Loading commit data...
GNUmakefile.in Loading commit data...
GNUmakerules Loading commit data...
GPL-COPYING Loading commit data...
LICENSE Loading commit data...
Makeconf.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
TODO.plab Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
defs-aerolab Loading commit data...
defs-barb-emulab Loading commit data...
defs-barb-mini Loading commit data...
defs-calfeld-emulab Loading commit data...
defs-davidand-emulab Loading commit data...
defs-default Loading commit data...
defs-duerig-emulab Loading commit data...
defs-example Loading commit data...
defs-gatech Loading commit data...
defs-kwebb-emulab Loading commit data...
defs-mini Loading commit data...
defs-newbold-emulab Loading commit data...
defs-newbold-macdb Loading commit data...
defs-newbold-mini Loading commit data...
defs-rchriste-emulab Loading commit data...
defs-ricci-emulab Loading commit data...
defs-ricci-mini Loading commit data...
defs-shash-emulab Loading commit data...
defs-shash-mini Loading commit data...
defs-stoller-emulab Loading commit data...
defs-stoller-home Loading commit data...
defs-stoller-mini Loading commit data...
defs-uky Loading commit data...
defs-wide Loading commit data...