aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/ixia/pass_fail.tcl
diff options
context:
space:
mode:
Diffstat (limited to '3rd_party/ixia/pass_fail.tcl')
-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"