1. 07 Jan, 2009 1 commit
    • Leigh B. Stoller's avatar
      Various changes to support storing control network vlans in · f55e466c
      Leigh B. Stoller authored
      the DB, and eventually elabinelab firewalls.
      
             # Allow arbitrary the names for the ids. Forgot who wanted this.
             alter table elabinelab_vlans change `inner_id`
                      `inner_id` varchar(32) NOT NULL default '';
             alter table elabinelab_vlans change `outer_id`
                      `outer_id` varchar(32) NOT NULL default '';
      
             # Tag elabinelab created vlans with the stack module.
             alter table elabinelab_vlans add `stack`
                 enum('Control','Experimental') NOT NULL default 'Experimental';
      
             # Tag vlans softstate table with the stack module.
             alter table vlans add `stack`
                 enum('Control','Experimental') NOT NULL default 'Experimental';
      
             # A new table, to store softstate on interfaces. snmpit will
             # modify this table whenever a port is enabled/trunked(tagged)
             # on the command line. Eventually speed/duplex should go here.
             CREATE TABLE `interface_state` (
      	  `node_id` varchar(32) NOT NULL default '',
      	  `card` tinyint(3) unsigned NOT NULL default '0',
      	  `port` tinyint(3) unsigned NOT NULL default '0',
      	  `iface` varchar(32) NOT NULL,
      	  `enabled` tinyint(1) default '1',
      	  `tagged` tinyint(1) default '0',
      	  PRIMARY KEY  (`node_id`,`card`,`port`),
      	  KEY `nodeiface` (`node_id`,`iface`)
      	) ENGINE=MyISAM DEFAULT CHARSET=latin1;
      
      	# Initialize the above table.
      	insert into interface_state (node_id,card,port,iface)
      	   select node_id,card,port,iface from interfaces;
      
      	# Cleanup the vlans table which was filling with cruft
      	# cause of a bug in the swapout code. Finally figured
      	# out how to combine delete and join!
      	delete v FROM vlans v LEFT JOIN lans l on l.lanid=v.id
      	       WHERE l.lanid IS NULL;
      
              # Fix an unrelated bug; slot overflow.
              alter table nodelog change `log_id`
                      `log_id` int(10) unsigned NOT NULL auto_increment;
      f55e466c
  2. 06 Jan, 2009 1 commit
  3. 04 Jan, 2009 1 commit
  4. 02 Jan, 2009 1 commit
  5. 30 Dec, 2008 2 commits
    • Ryan Jackson's avatar
      Lots of changes. Here are some of the significant ones: · c08e7725
      Ryan Jackson authored
      - Cleanup of filesystem layout
      - Some patches to make busybox's adduser and addgroup commands a bit more
        compatible with the standard useradd and groupadd commands
      - Wrappers for ((user|group)(add|del))
      - Getopt perl module added
      - Working sudo setup
      - Portmap added to support NFS mounts with locking.
      - Syslog added, but not currently configured. Primarily intended for
        troubleshooting strange problems.
      - Fixes to permissions
      - rc.mounts, rc.localize, and rc.accounts work now.
      c08e7725
    • David Johnson's avatar
      Add support for adding interfaces, outlets, tiplines, and for doing the · 7e860d79
      David Johnson authored
      full node create, not just inserting widearea_nodeinfo.
      7e860d79
  6. 23 Dec, 2008 4 commits
  7. 22 Dec, 2008 3 commits
  8. 18 Dec, 2008 3 commits
  9. 17 Dec, 2008 4 commits
  10. 16 Dec, 2008 4 commits
  11. 15 Dec, 2008 4 commits
  12. 14 Dec, 2008 1 commit
  13. 13 Dec, 2008 1 commit
  14. 12 Dec, 2008 1 commit
  15. 11 Dec, 2008 3 commits
  16. 10 Dec, 2008 6 commits