| 1 |
# -*- tcl -*- |
|---|
| 2 |
# |
|---|
| 3 |
# EMULAB-COPYRIGHT |
|---|
| 4 |
# Copyright (c) 2000-2003 University of Utah and the Flux Group. |
|---|
| 5 |
# All rights reserved. |
|---|
| 6 |
# |
|---|
| 7 |
|
|---|
| 8 |
# This is a nop tb_compact.tcl file that should be used when running scripts |
|---|
| 9 |
# under ns. |
|---|
| 10 |
|
|---|
| 11 |
proc tb-set-ip {node ip} {} |
|---|
| 12 |
proc tb-set-ip-interface {src dst ip} {} |
|---|
| 13 |
proc tb-set-ip-link {src link ip} {} |
|---|
| 14 |
proc tb-set-ip-lan {src lan ip} {} |
|---|
| 15 |
proc tb-set-hardware {node type args} {} |
|---|
| 16 |
proc tb-set-node-os {node os} {} |
|---|
| 17 |
proc tb-set-link-loss {src args} {} |
|---|
| 18 |
proc tb-set-lan-loss {lan rate} {} |
|---|
| 19 |
proc tb-set-node-rpms {node args} {} |
|---|
| 20 |
proc tb-set-node-startup {node cmd} {} |
|---|
| 21 |
proc tb-set-node-cmdline {node cmd} {} |
|---|
| 22 |
proc tb-set-node-deltas {node args} {} |
|---|
| 23 |
proc tb-set-node-tarfiles {node args} {} |
|---|
| 24 |
proc tb-set-node-lan-delay {node lan delay} {} |
|---|
| 25 |
proc tb-set-node-lan-bandwidth {node lan bw} {} |
|---|
| 26 |
proc tb-set-node-lan-loss {node lan loss} {} |
|---|
| 27 |
proc tb-set-node-lan-params {node lan delay bw loss} {} |
|---|
| 28 |
proc tb-set-node-failure-action {node type} {} |
|---|
| 29 |
proc tb-set-ip-routing {type} {} |
|---|
| 30 |
proc tb-fix-node {v p} {} |
|---|
| 31 |
proc tb-make-weighted-vtype {name weight types} {} |
|---|
| 32 |
proc tb-make-soft-vtype {name types} {} |
|---|
| 33 |
proc tb-make-hard-vtype {name types} {} |
|---|
| 34 |
proc tb-set-lan-simplex-params {lan node todelay tobw toloss fromdelay frombw fromloss} {} |
|---|
| 35 |
proc tb-set-link-simplex-params {link src delay bw loss} {} |
|---|
| 36 |
proc tb-set-uselatestwadata {onoff} {} |
|---|
| 37 |
proc tb-set-usewatunnels {onoff} {} |
|---|
| 38 |
proc tb-set-wasolver-weights {delay bw plr} {} |
|---|
| 39 |
proc tb-set-uselinkdelays {onoff} {} |
|---|
| 40 |
proc tb-set-forcelinkdelays {onoff} {} |
|---|
| 41 |
|
|---|
| 42 |
Class Program |
|---|
| 43 |
|
|---|
| 44 |
Program instproc init {args} { |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
Program instproc unknown {m args} { |
|---|
| 48 |
} |
|---|
| 49 |
|
|---|
| 50 |
Class NSENode -superclass Node |
|---|
| 51 |
|
|---|
| 52 |
NSENode instproc make-simulated {args} { |
|---|
| 53 |
uplevel 1 eval $args |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|
| 56 |
# We are just syntax checking the NS file |
|---|
| 57 |
Simulator instproc run {args} { |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
Simulator instproc nsenode {args} { |
|---|
| 61 |
return [new NSENode] |
|---|
| 62 |
} |
|---|
| 63 |
|
|---|
| 64 |
Simulator instproc make-simulated {args} { |
|---|
| 65 |
uplevel 1 eval $args |
|---|
| 66 |
} |
|---|