Skip to content
GitLab
Menu
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
62f71456
Commit
62f71456
authored
Jan 12, 2012
by
Yathindra Naik
Browse files
Added disk-agent and custom-agent procs to Node class
parent
3bc82118
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/node.tcl
View file @
62f71456
...
...
@@ -706,6 +706,35 @@ Node instproc program-agent {args} {
return $curprog
}
Node instproc disk-agent
{
args
}
{
::GLOBALS::named-args $args
{
-name
{}
-type
{}
-mountpoint
{}
-params
{}
}
set curdisk
[
new Disk
[
$self
set sim
]]
$curdisk set node $self
$curdisk set name $
(
-name
)
$curdisk set type $
(
-type
)
$curdisk set mountpoint
"{
$
(-mountpoint)}"
$curdisk set params
"{
$
(-params)}"
return $curdisk
}
Node instproc custom-agent
{
args
}
{
::GLOBALS::named-args $args
{
-name
{}
}
set customagent
[
new Custom
[
$self
set sim
]]
$customagent set node $self
$customagent set name $
(
-name
)
return $customagent
}
Node instproc topography
{
topo
}
{
var_import ::TBCOMPAT::location_info
$self instvar sim
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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