1. 26 Apr, 2011 1 commit
  2. 25 Apr, 2011 1 commit
  3. 05 Apr, 2011 1 commit
  4. 31 Mar, 2011 1 commit
  5. 29 Mar, 2011 1 commit
  6. 28 Mar, 2011 1 commit
  7. 16 Mar, 2011 1 commit
  8. 09 Mar, 2011 2 commits
  9. 08 Mar, 2011 3 commits
  10. 14 Jan, 2011 1 commit
  11. 13 Jan, 2011 1 commit
    • Leigh B Stoller's avatar
      Small changes so that snmpit can operate on other stacks besides the · ecd7428e
      Leigh B Stoller authored
      Experimental stack, as to create vlans on switches that are part of
      experiments, without explicitly specifying the vlans/ports. We filter
      the experiment's set of vlans, to operate only on the vlans that have
      ports on the stack (provided with -S).
      Note that snmpit still cannot deal with multiple stacks, or with vlans
      that cross stacks.
  12. 05 Jan, 2011 1 commit
    • Weibin Sun's avatar
      Add code into snmpit and snmpit_lib to support the implemented_by, the code... · 9399bd29
      Weibin Sun authored
      Add code into snmpit and snmpit_lib to support the implemented_by, the code check whether a VLAN is a link that implements a path consisting of two layer 1 links, if YES, move the vlanid to a special array, the CreateOneVlan is able to handle two stacks in that case. The ports in the special VLAN is in switch:card.port format when they are passed to snmpit_stack and the under driver.(snmpit_hp only.)
  13. 22 Dec, 2010 1 commit
  14. 14 Dec, 2010 2 commits
  15. 16 Oct, 2010 1 commit
    • Weibin Sun's avatar
      Apply changes on boss installation to the source: add isSwitchPort and... · 7bd594ea
      Weibin Sun authored
      Apply changes on boss installation to the source: add isSwitchPort and getVlanIfaces to snmpit_lib, isSwitchPort detects if a given port is on switch, getVlanIfaces get ports in a Vlan in iface format; call getVlanIfaces from getVlanPorts to reuse the code to find members in a VLAn; in convertPortFromIface, detect if a port is actually on switch and get the port in node:card.port format, but now the return value is still node:card because lots of code in snmpit and snmpit_lib heavily depend on the node:card format. In snmpit, check if a port is on switch before portControl and getInterfaceSettings to avoid errors cause by port-not-found. In snmpit_apcon, try to refine the given ports in setPortsVlan and portControl to deal with switch port, also a more robust function to translate port from pc node format to switch format.
  16. 01 Oct, 2010 1 commit
  17. 24 Sep, 2010 1 commit
  18. 23 Sep, 2010 1 commit
  19. 08 Jan, 2010 1 commit
  20. 11 Sep, 2009 1 commit
    • Robert Ricci's avatar
      Changed the way that snmpit decides what switches to operate on for the · 89be15ec
      Robert Ricci authored
      'tables', 'reset', and 'synctables' commands. Rather than assuming all
      VLANs live on the One True Experimental Net Stack (unless -S was given),
      they all now check the database to see which stack they should be operating
      Changed how stack information is currently stored in the database. The
      LAN attribute formerly known as 'stack' is now called 'class', and has
      two valid values, 'Experimental' and 'Control'. The idea is to record
      whether something is an experimental net or control net LAN, not which
      specific stack it's on. The 'stack' column in the VLANs table now
      records the actual stack_id on which the VLAN has been created.
      This is all in support of testbeds that have multiple experimental-net
      stacks, as Utah currently does.
  21. 23 Jul, 2009 1 commit
    • Leigh B. Stoller's avatar
      Some ne utility functions. · c3d9ebc4
      Leigh B. Stoller authored
      * portiface() to mape between pcX:Y<==>pcX:iface (port<==>iface).
      * getExperimentCurrentTrunks() to return the current set of interfaces
        (for the given experiment) that are in trunk mode, according to the
        interface_state table.
      * getExperimentVlanPorts() to return all the members (ports) of a
        specific vlan.
  22. 01 Jul, 2009 1 commit
  23. 11 Jun, 2009 1 commit
  24. 07 Jan, 2009 1 commit
  25. 21 Nov, 2008 1 commit
  26. 28 Jul, 2008 1 commit
  27. 14 Jan, 2008 1 commit
  28. 16 Aug, 2006 1 commit
    • Kevin Atkinson's avatar
      - Added tbreport database schema (added three tables), storage for · 9c5d3308
      Kevin Atkinson authored
        tbreport errors & context.
      - Modified fatal() in swapexp, batchexp, and tbprerun, and die_noretry()
        in os_setup to pass hash parameter to tblog functions.
      - Added tbreport errror & context information for select errors in
        swapexp, tbswap, assign_wrapper2, snmpit_lib, snmpit, batchexp,
        assign_wrapper, os_setup, parse-ns, & tbprerun.
      - Added assign error parser in assign_wrapper2.
      - Added parse.tcl error parser in parse-ns.
      - Added severity constants for tbreport in libtblog_simple.
      - Added tbreport() function & context table mappging for reporting
        discrete error types to libtblog.
  29. 15 Aug, 2006 2 commits
  30. 18 Jul, 2006 1 commit
    • Leigh B. Stoller's avatar
      Changes necessary for moving most of the stuff in the node_types · 624a0364
      Leigh B. Stoller authored
      table, into a new table called node_type_attributes, which is intended
      to be a more extensible way of describing nodes.
      The only things left in the node_types table will be type,class and the
      various isXXX boolean flags, since we use those in numerous joins all over
      the system (ie: when discriminating amongst nodes).
      For the most part, all of that other stuff is rarely used, or used in
      contexts where the information is needed, but not for type descrimination.
      Still, it made for a lot of queries to change!
      Along the way I added a NodeType library module that represents the type
      info as a perl object. I also beefed up the existing Node module, and
      started using it in more places. I also added an Interfaces module, but I
      have not done much with that yet.
      I have not yet removed all the slots from the node_types table; I plan to
      run the new code for a few days and then remove the slots.
      Example using the new NodeType object:
      	use NodeType;
      	my $typeinfo = NodeType->Lookup($type);
              if ($typeinfo->control_interface(\$control_iface) ||
                  !$control_iface) {
        	    warn "No control interface for $type is defined in the DB!\n";
      or using the Node:
      	use Node;
              my $nodeobject = Node->Lookup($node_id);
              my $imageable  = $nodeobject->NodeTypeInfo()->imageable();
              my $rebootable = $nodeobject->isrebootable();
              $nodeobject->NodeTypeAttribute("control_interface", \$control_iface);
      Lots of way to accomplish the same thing, but the main point is that the
      Node is able to override the NodeType (if it wants to), which I think is
      necessary for flexibly describing one/two of a kind things like switches, etc.
  31. 16 Mar, 2006 1 commit
  32. 16 Feb, 2006 1 commit
  33. 09 Dec, 2005 1 commit
  34. 18 Nov, 2005 1 commit
    • Robert Ricci's avatar
      Make snmpit_cisco much, much more robust to failures. · 1236b544
      Robert Ricci authored
      Convert most SNMP interaction to use the snmpit*() library, so that
      they get support for retrying failures, etc.
      Add new library calls for wrapping bulkwalk() - so now, we will
      retry those on error as well. Before, we had the bad behavior than
      many functions, like listVlans() would just see empty lists instead
      of errors.
      When making a new Cisco object, we now test network connectivity right
      away, by fetching an OID that should exist on all SNMP devices. Before,
      we wouldn't find out we couldn't contact the switch until we actually
      did something on it.
      Also, make VLAN number choosing go a bit faster by converting it to
      bulkwalk() (using the new library function) so we can grab all VLAN
      numbers at once.
  35. 21 Jun, 2005 1 commit