1. 25 Nov, 2002 1 commit
  2. 23 Nov, 2002 1 commit
  3. 22 Nov, 2002 5 commits
  4. 21 Nov, 2002 2 commits
  5. 19 Nov, 2002 6 commits
  6. 18 Nov, 2002 1 commit
  7. 17 Nov, 2002 1 commit
  8. 16 Nov, 2002 3 commits
  9. 15 Nov, 2002 3 commits
  10. 14 Nov, 2002 8 commits
    • Shashi Guruprasad's avatar
      011697a7
    • Mac Newbold's avatar
    • Leigh Stoller's avatar
      libdb: Add TBIPtoNodeID utility function. Also some minor jail related · bed7c3ee
      Leigh Stoller authored
      changes; add optinal jailflag argument to TBIsNodeVirtual, and add some
      constants for assigning port ranges to jailed nodes.
      
      newwanode: Allow reuse of existing node. So, if called with an IP that
      already exists in the DB, reuse those records (nodes, interfaces,
      reserved) rather than creating a new one. The web page makes sure that
      the calling node has a valid IP (REMOTE_ADDR equals IP it gives us),
      so it typically means an exiting node is being reinstalled (happening
      with RON nodes right now!).
      bed7c3ee
    • Mac Newbold's avatar
      Add the long-awaited check for nodes that have too many lans/links. For · 4f0c3572
      Mac Newbold authored
      now it is just hardcoded to 4, but could be done from the db too. Gives
      errors like this one, from a topo where node2 and node6 each have 5 links:
      
      *** /usr/testbed/devel/newbold/lib/ns2ir/parse.tcl:
          Too many links/LANs to node node2! Maximum is 4.
      *** /usr/testbed/devel/newbold/lib/ns2ir/parse.tcl:
          Too many links/LANs to node node6! Maximum is 4.
      *** /usr/testbed/devel/newbold/bin/batchexp:
          NS Parse failed!
      4f0c3572
    • Mac Newbold's avatar
      Finally, a check for links that want too much bandwidth. Right now it uses · 5eb5c6ed
      Mac Newbold authored
      the somewhat hacky fail-if-they-want-over-100mbps method, but could in the
      future draw the info from the database or something if it ends up being
      necessary.
      
      Setup Failure(255): Output as follows:
      
      *** /usr/testbed/devel/newbold/lib/ns2ir/parse.tcl:
          Bandwidth requested (150000) exceeds maximum of 100000 kbps!
      *** /usr/testbed/devel/newbold/lib/ns2ir/parse.tcl:
          [run] link0 has only a single node. LANs must have at least 2 nodes in them.
      *** /usr/testbed/devel/newbold/bin/batchexp:
          NS Parse failed!
      5eb5c6ed
    • Mac Newbold's avatar
      Lots of changes. · 349db7bf
      Mac Newbold authored
      First, fix up the isup generation code. When a node/OS doesn't send its
      own isups, but is pingable, we need to fork and ping it, and send ISUP
      when it pings. The code was there, but was broken. This fixes it. The one
      time that it may cause errant messages is in modes other than MINIMAL.
      When we get BOOTING, we check if it needs isup generated. If we have to
      ping it, when it pings we send ISUP. This means that if we are really in
      NORMAL mode, we might send ISUP before the node sends REBOOTED (or TBSETUP
      in NORMALv1), and it would look funny. But that case will be really rare,
      since everything that sends REBOOTED or TBSETUP has no reason not to send
      ISUP itself.
      
      Second, after mailbombing myself a couple of times, Kirk and I decided I'd
      better put some throttling in the notification code that stated uses. So
      now it throttles itself and digests the messages if they're sent too close
      together. The first message it gets will get sent immediately. If the next
      one is long enough after that, it sends it immediately too. If a message
      comes too soon after sending one, we queue it up, and send it later
      after enough time has passed. Currently it is set to wait 5 seconds
      between messages, so it will send up to 12 per second, and wait no more
      than 5 seconds before sending a message that is queued up.
      
      (Something similar to this may be a nice thing in the rest of our stuff,
      but it was made a lot easier by the fact that stated already had a polling
      loop in it. Without that, you'd have to use alarms or some other weird
      thing, which would be painful.)
      349db7bf
    • Leigh Stoller's avatar
      Minor changes; update the nickname when remote nodes checkin in case · a7c02305
      Leigh Stoller authored
      their real hostname changes.
      a7c02305
    • Leigh Stoller's avatar
      Change ntpinfo as per Dave's request. · 48629e9c
      Leigh Stoller authored
      48629e9c
  11. 13 Nov, 2002 2 commits
  12. 12 Nov, 2002 5 commits
  13. 11 Nov, 2002 1 commit
  14. 10 Nov, 2002 1 commit