summaryrefslogtreecommitdiffstats
path: root/3rd_party/ixia
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-11-03 15:57:10 +0000
committerMartin Klozik <martinx.klozik@intel.com>2016-11-04 13:08:53 +0000
commit131fd1cccc824371fa3b1e7a8477818a03fa1d35 (patch)
treea3b3f56c9d947ddf0a05c1646a5a6f5816939b5e /3rd_party/ixia
parent9c13028cf9b29da86e5b12c5d3b8c4d6bd858545 (diff)
bugfix: Trafficgen Ixia does not work
IXIA traffic generator can be controlled by two different VSPERF's wrappers IxNet (preferred) and Ixia (legacy and outdated). It has been found, that Ixia wrapper can't be used because of missing "packetsize" traffic item. Also only IXIA OS 6.60 was supported and never IXIA OS versions were not working. Both limitations were fixed. Also reported results were fixed to show correct values for MBPS items. JIRA: VSPERF-417 Change-Id: I191aa9fee2683877ce373b6aa7cd1c72e9847568 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Bill Michalowski <bmichalo@redhat.com> Reviewed-by: Christo Kleu <christo.kleu@netronome.com>
Diffstat (limited to '3rd_party/ixia')
-rwxr-xr-x3rd_party/ixia/pass_fail.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rd_party/ixia/pass_fail.tcl b/3rd_party/ixia/pass_fail.tcl
index 79b7f10d..0a5a7677 100755
--- a/3rd_party/ixia/pass_fail.tcl
+++ b/3rd_party/ixia/pass_fail.tcl
@@ -422,7 +422,11 @@ proc sendTraffic { flowSpec trafficSpec } {
udp setDefault
udp config -sourcePort $srcPort
udp config -destPort $dstPort
- set packetSize [dict get $trafficSpec_l3 packetsize]
+ if {[dict exists $trafficSpec_l3 packetsize]} {
+ set packetSize [dict get $trafficSpec_l3 packetsize]
+ } else {
+ set packetSize $frameSize
+ }
stream config -framesize $packetSize
if {[udp set $::chassis $::card $::port1]} {
errorMsg "Error setting udp on port $::chassis.$::card.$::port1"