1. 15 Jan, 2003 1 commit
  2. 31 Dec, 2002 1 commit
  3. 18 Dec, 2002 1 commit
    • Leigh B. Stoller's avatar
      Allow slightly altered tb-fix-node syntax for creating jails on local · d564e0fb
      Leigh B. Stoller authored
      nodes. The second argument can now be an NS node instead of the name
      of a real testbed node. For example:
      
      	tb-set-hardware $node3  pc600
      	tb-set-hardware $nodev1 pcvm600
      	tb-fix-node $nodev1 $node3
      
      So, "fix" $nodev1 to $node3. The intent is that once $node3 is
      allocated by assign to a real testbed node, we can then allocate a
      virtual node on pcXX to $nodev1. I did this primarily to allow for
      easy testing of jails via my NS file, without having to hack assign
      wrapper to deeply. Note there are still hacks in assign_wrapper to
      support this, but they are not extensive.
      
      Also my old usewatunnels stuff I never checked in:
      
      	tb-set-usewatunnels 0/1
      d564e0fb
  4. 06 Nov, 2002 1 commit
    • Shashi Guruprasad's avatar
      NSE related changes: · 05bc3bd4
      Shashi Guruprasad authored
        - Fixes the routing problem
        - A new type "sim" has been created but not in the DB. node_types and
          nodes remain unchanged. This will change after we figure out how
          to represent in the DB the local multiple virtnodes in one phynode case
          The frontend tb_compat.tcl adds the sim type and ptopgen associates
          a huge number of sim nodes to all local PCs.
        - All simulated nodes go into one pc untill I finish coding the distributed
          nse case. Also, sim nodes go through assign but with an explicit
          "fix-node" directive in the top file. A random free pc is chosen using
          the avail script in assign_wrapper. If we don't fix node it, assign
          maps sim nodes to multiple phy nodes even when a valid all to one
          mapping is possible.
        - Syntax for nse:
      
         $ns make-simulated {
      
             set simnode1 [$ns node]
             set simnode2 [$ns node]
      
         }
         ...
      
         The old syntax
      
         set nsenode [$ns nsenode]
         $nsenode make-simulated {
         }
      
         is deprecated
      
        - All 38 frontend tests in the testsuite pass
      
        - A new table v2pmap has been added to handle multiple virt nodes to
          one phy node mapping. This is used in "tmcc hostnames" currently.
      
        - The phy node that is picked to run nse is loaded with a custom image
          FBSD45-NSE . This can use the default FBSD kernel if there is a mechanism
          to run at 1000HZ, have options IPFIREWALL_FORWARD and PERFMON turned on.
          The image is in the 'testbed' group. Do not delete this image.
      
        - Static routes now adds routes for the case dst == nexthop. The routing
          graph would be disconnected otherwise and I need to traverse this in
          assign_wrapper for nse. On the client side, such a route is filtered out in
          libsetup.pm
      
        - sim nodes are also correctly visualized
      05bc3bd4
  5. 28 Oct, 2002 1 commit
  6. 07 Jul, 2002 1 commit
  7. 31 May, 2002 1 commit
  8. 23 May, 2002 1 commit
  9. 22 May, 2002 1 commit
  10. 16 May, 2002 2 commits
  11. 12 May, 2002 1 commit
  12. 11 May, 2002 1 commit
  13. 23 Apr, 2002 1 commit
  14. 22 Apr, 2002 1 commit
  15. 08 Feb, 2002 1 commit
    • Leigh B. Stoller's avatar
      Big round of image/osid changes. This is the first cut (final cut?) at · a73e627e
      Leigh B. Stoller authored
      supporting autocreating and autoloading images. The imageid form now
      sports a field to specify a nodeid to create the image from; If set,
      the backend create_image script is invoked. Thats the easy part.
      Slightly harder is autoloading images based on the osid specified in
      the NS file. To support this, I have added a new DB table called
      osidtoimageid, which holds the mapping from osid/pctype to imageid.
      When users create images, they must specify what node types that image
      is good for. Obviously, the mappings have to be unique or it would be
      impossible to figure it out! Anyway, once that image mapping is
      in place and the image created, the user can specify that ID in the NS
      file. I've changed os_setup to to look for IDs that are not loaded,
      and to try and find one in the osidtoimageid. If found, it invokes
      os_load. To keep things running in parallel as much as possible,
      os_setup issues all the loads/reboots (could be more than a single set
      of loads is multiple IDs are in the NS file) at once, and waits for
      all the children to exit. I've hacked up os_load a bit to try and be
      more robust in the face of PXE failures, which still happen and are
      rather troublsesome. Need an event system!
      
      Contained in this revision are unrelated changed to make the OS and
      Image IDs per-project unique instead of globally unique, since thats a
      pain for the users. This turns out to be very messy, since underneath
      we do not want to pass around pid/ID in all the various places its
      used. Rather, I create a globally unique name and extened the OS and
      Image tables to include pid/name/ID. The user selects pid/name, and I
      create the globally unique ID. For the most part this is invisible
      throughout the system, except where we interface with the user, say in
      the web pages; the user should see his chosen name where possible, and
      the should invoke scripts (os_load, create_image, etc) using his/her
      name not the internal ID. Also, in the front end the NS file should
      use the user name not the ID. All in all, this accounted for a number
      of annoying changes and some special cases that are unavoidable.
      a73e627e
  16. 11 Jan, 2002 1 commit
  17. 08 Jan, 2002 1 commit
  18. 03 Jan, 2002 1 commit
  19. 20 Dec, 2001 1 commit
  20. 13 Dec, 2001 1 commit
  21. 19 Sep, 2001 1 commit
  22. 05 Sep, 2001 1 commit
  23. 31 Jul, 2001 1 commit
  24. 23 Jul, 2001 1 commit
  25. 13 Jul, 2001 1 commit
  26. 09 Jul, 2001 1 commit
  27. 20 Jun, 2001 1 commit
  28. 16 May, 2001 1 commit
  29. 07 May, 2001 1 commit
  30. 11 Apr, 2001 1 commit
    • Christopher Alfeld's avatar
      Serious restructuring of parsing. · e9b8c412
      Christopher Alfeld authored
      This makes variable dereferencing work as expected.  So:
      
              for {set i 1} {$i <= 8} {incr i} {
                  set c($i) [$ns node]
                  tb-set-node-cmdline $c($i) "BATCH=1 DST_NAME=$c($i)"
              }
      
      will now expand $c($i) to correctly to c-$i.  Similarly:
      
      set node1 [$ns node]
      puts "First node is $node1"
      
      will output:
      
      First node is node1.
      
      Caveat: It assumes that every node and lan will be stored in a
      variable.  So doing something like:
      
      $ns duplex-link [$ns node] [$ns node] 100Mb 150ms DroPTail
      
      while in theory valid and sensible, won't work.
      
      A clean rewrite of the parsing stuff is probably something I should do
      soon.  It needs it to do all the variable munging correctly.
      e9b8c412
  31. 09 Apr, 2001 1 commit
  32. 20 Mar, 2001 1 commit
    • Christopher Alfeld's avatar
      Added: · 0510282c
      Christopher Alfeld authored
      tb-set-node-rpms
      tb-set-node-startup
      tb-set-node-cmdline
      
      Also fixed bug with LAN loss in handle_os
      0510282c
  33. 15 Mar, 2001 1 commit
  34. 14 Mar, 2001 2 commits
    • Christopher Alfeld's avatar
      This is the multiple links update. · 4b07b9df
      Christopher Alfeld authored
      Links can now be named:
      
      set link1 [$ns duplex-link $node0 $node1 100Mb 100ms DropTail]
      
      tb-set-link-loss can now either be
      
      tb-set-link-loss $node0 $node1 0.05
      
      OR
      
      tb-set-link-loss $node0 $link1 0.05
      
      There is a new command, tb-set-ip-link:
      
      tb-set-ip-link $node0 $link0 192.0.0.4
      
      and tb-set-ip-lan:
      
      tb-set-ip-lan $node $mylan 192.0.1.2
      
      --
      
      WARNING: We are no longer backwards compatible with the old tb command
      syntax.  The old syntax does not support any of the new changes and will
      break when #TB set-lan-loss or #TB set-ip-interface is used.
      4b07b9df
    • Christopher Alfeld's avatar
      Fixed bug in tb-set-lan-loss. · 2b7e2a47
      Christopher Alfeld authored
      Added code for user naming links.  This will be used later for the
      multiple link support.
      2b7e2a47
  35. 14 Feb, 2001 1 commit
    • Christopher Alfeld's avatar
      parse.tcl has a few minor fixes and copies in the tb_compat.tcl file now. · 8b418535
      Christopher Alfeld authored
      postparse now uses tbcmds
      sim.tcl is updated to close (and flush) the tbcmds output stream if it
      exists.
      tb_compat.tcl is the TB version that should be included by newstyle ns scripts.
      tb_compat_nop.tcl is the NS version that should be renamed to tb_compat.tcl
      and included by scripts when they are run under ns.  I.e. scripts
      	source tb_compat.tcl
      as the first line and then use either the TB or the NS (nop) version depending
      on what they are doing.
      8b418535