Commit 775ddd4f authored by Leigh B. Stoller's avatar 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
...@@ -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
......
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