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
775ddd4f
Commit
775ddd4f
authored
Mar 12, 2002
by
Leigh B. Stoller
Browse files
Add generators slot to virt_trafgens table, defaults to "TG" for now.
This is for Shashi and NSE support.
parent
84533a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/traffic.tcl
View file @
775ddd4f
...
@@ -32,6 +32,7 @@ Agent instproc init {} {
...
@@ -32,6 +32,7 @@ Agent instproc init {} {
$self set proto
{}
$self set proto
{}
$self set role
{}
$self set role
{}
$self set port
{}
$self set port
{}
$self set generator
"TG"
global ::GLOBALS::last_class
global ::GLOBALS::last_class
set ::GLOBALS::last_class $self
set ::GLOBALS::last_class $self
}
}
...
@@ -74,6 +75,7 @@ Agent instproc updatedb {DB} {
...
@@ -74,6 +75,7 @@ Agent instproc updatedb {DB} {
$self instvar node
$self instvar node
$self instvar proto
$self instvar proto
$self instvar role
$self instvar role
$self instvar generator
$self instvar port
$self instvar port
if
{
$role
==
{}}
{
if
{
$role
==
{}}
{
...
@@ -95,7 +97,7 @@ Agent instproc updatedb {DB} {
...
@@ -95,7 +97,7 @@ Agent instproc updatedb {DB} {
# set dst_link
[
lindex
[
$target
_vnode set portlist
]
0
]
# set dst_link
[
lindex
[
$target
_vnode set portlist
]
0
]
# Update the DB
# Update the DB
sql exec $DB
"insert into virt_trafgens (pid,eid,vnode,vname,role,proto,port,target_vnode,target_port) values ('
$pid
','
$eid
','
$node
','
$application
','
$role
','
$proto
',
$port
,'
$target
_vnode',
$target
_port)"
;
sql exec $DB
"insert into virt_trafgens (pid,eid,vnode,vname,role,proto,port,target_vnode,target_port
,generator
) values ('
$pid
','
$eid
','
$node
','
$application
','
$role
','
$proto
',
$port
,'
$target
_vnode',
$target
_port
,'
$generator
'
)"
;
}
}
# Agent/UDP
# Agent/UDP
...
...
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