Commit 6007cc9c authored by Timothy Stack's avatar Timothy Stack
Browse files

Error out if the user tries to do "$ns run" more than once.

parent f3314f0f
......@@ -271,6 +271,11 @@ Simulator instproc run {} {
var_import ::GLOBALS::modelnet_edges
var_import ::GLOBALS::elab_in_elab
if {$ran == 1} {
perror "The Simulator 'run' statement can only be run once."
# Fill out IPs
if {! $use_ipassign } {
foreach obj [concat [array names lanlink_list]] {
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