Commit 5eb5c6ed authored by Mac Newbold's avatar Mac Newbold
Browse files

Finally, a check for links that want too much bandwidth. Right now it uses

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

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!
parent 349db7bf
......@@ -134,6 +134,16 @@ LanLink instproc init {s nodes bw d type} {
# By default, a local link
$self set widearea 0
# Make sure BW is reasonable.
# XXX: Should come from DB instead of hardwired max.
# Measured in kbps
set maxbw 100000
if { $bw > $maxbw } {
perror "Bandwidth requested ($bw) exceeds maximum of $maxbw kbps!"
# Now we need to fill out the nodelist
$self instvar nodelist
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment