1. 07 Jan, 2009 12 commits
    • Leigh B. Stoller's avatar
      Do not return control net vlans from tmcd. We determine this by · 1ebb5ea6
      Leigh B. Stoller authored
      looking at the stack attribute in the lans_attributes table, which
      must not say 'Experimental' or not be set at all (legacy).
    • Leigh B. Stoller's avatar
      Library functions to set/clr the enabled/tagged bits in the new · 71812015
      Leigh B. Stoller authored
      interface_state table.
    • Leigh B. Stoller's avatar
      Change the way that elabinelab communicates with the outer emulab. · 0a004176
      Leigh B. Stoller authored
      Instead of passing along a set of arguments that needs to be turned
      into command line arguments to the proxy, pass along an xmldoc
      representing the arguments. This xmldoc is passed through the rpc
      server to the snmpit proxy, where it reconstructs the arguments. This
      avoids all that cruftiness in the rpc server (also error prone) and
      make it easier to add new remote methods, say for supporting eventual
      elabibelab firewalls. Note that there are currently two versions of
      the proxy and two methods in the rpc server, so that existing emulabs
      will work.
      I also added support for port enable/disable/etc from the inner elab.
      There is also the beginning of firewall support. I pass the stack
      module argument along, but currently not actually doing control stack
      operations from the proxy. Needs more work.
      Oh, I copied the cvs repo file for the original proxy so that we do
      not lose the cvs history.
      See corresponding commitlog for snmpit for description of other
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
      Minor bug fix. · 417722a3
      Leigh B. Stoller authored
    • Leigh B. Stoller's avatar
      Do not allow a node that is still in a vlan (experimental or control) · 3a8a3435
      Leigh B. Stoller authored
      to be free'ed. Ditto for interfaces on those nodes that are disabled
      or trunked (tagged). This all indicates something went screwy
      someplace else and something needs to be fixed/cleaned.
    • Leigh B. Stoller's avatar
      Various changes to support changes to snmpit that record manually · 13c58c2e
      Leigh B. Stoller authored
      created vlans (-m option to snmpit) in the DB, both for the
      experimental and control stacks.
    • Leigh B. Stoller's avatar
      Add methods and lookup for new interfce_state table. Given an · 3da9ec35
      Leigh B. Stoller authored
      interface object, you can ask it ->tagged() and ->enabled().
    • Leigh B. Stoller's avatar
      Change name of the new snmpit.proxy module. Need to maintain both · c86ba33e
      Leigh B. Stoller authored
      old and new versions for a while so as not to break existing
    • Leigh B. Stoller's avatar
      Initialize new interface_state table when entries new nodes · 1040f711
      Leigh B. Stoller authored
      (interfaces) are added to the DB.
    • 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`)
      	# 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;
  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.
    • 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.
  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