Commit a66ee825 authored by Leigh B. Stoller's avatar 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
......@@ -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
Supports Markdown
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