- vm1 = STLScVmRaw([
- STLVmTupleGen(ip_min=self.p1_src_start_ip,
- ip_max=self.p1_src_end_ip,
- port_min=self.p1_src_start_udp_port,
- port_max=self.p1_src_end_udp_port,
- name="tuple"),
- STLVmWrFlowVar(fv_name="tuple.ip", pkt_offset="IP.src"),
- STLVmFixIpv4(offset="IP"),
- STLVmWrFlowVar(fv_name="tuple.port", pkt_offset="UDP.sport")
- ])
+ vm1 = STLScVmRaw(
+ [
+ STLVmTupleGen(
+ ip_min=self.p1_src_start_ip,
+ ip_max=self.p1_src_end_ip,
+ port_min=self.p1_src_start_udp_port,
+ port_max=self.p1_src_end_udp_port,
+ name=u"tuple"
+ ),
+ STLVmWrFlowVar(
+ fv_name=u"tuple.ip",
+ pkt_offset=u"IP.src"
+ ),
+ STLVmFixIpv4(
+ offset=u"IP"
+ ),
+ STLVmWrFlowVar(
+ fv_name=u"tuple.port",
+ pkt_offset=u"UDP.sport"
+ )
+ ]
+ )