Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a66ee825
Commit
a66ee825
authored
May 21, 2002
by
Leigh B. Stoller
Browse files
No need to grab unique subnets (for remote links) from the DB when
running in "impotent" mode; just make them up.
parent
73b360bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/sim.tcl.in
View file @
a66ee825
...
...
@@ -780,6 +780,13 @@ Simulator instproc get_subnet_remote {} {
var_import ::GLOBALS::DB
var_import ::GLOBALS::pid
var_import ::GLOBALS::eid
var_import ::GLOBALS::impotent
# If we are running in impotent mode, then no need for unique subnets
if {$impotent == 1} {
set subnet [$self get_subnet]
return $subnet
}
sql exec $DB "insert into ipsubnets values ('$pid','$eid', NULL)"
sql endquery $DB
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment