Printer FriendlyEmail Article Link

Spirent TestCenter- Automation: Code snippet to add custom header

Objective/Summary

The below code describes code snippet to add custom header. We have defined the custom header pattern in a variable.

Environment/Versions
  • Spirent TestCenter
  • PGA- Custom Header
Procedure

set frame1 "01005E00000100000000000308004500001BD6B000000102421AC0130102E00000011100EEFF000000580003000000010000000000002512DEADBEEF8BE1C8ED"


set StreamBlock1 [stc::create StreamBlock -under $port1 -EqualRxPortDistribution "FALSE" -frameconfig "" -LoadUnit "PERCENT_LINE_RATE" -Load "10" -InsertSig "FALSE" -AllowInvalidHeaders "TRUE"]


set Custom_1 [stc::create custom:Custom -under $StreamBlock1 -pattern $frame1]


Product : Spirent TestCenter,Automation,API,Spirent TestCenter,PGA