- vm1 = STLScVmRaw([STLVmFlowVar(name=u"mac_dst",
- min_value=0,
- max_value=3,
- size=1, op=u"inc"),
- STLVmWrFlowVar(fv_name=u"mac_dst", pkt_offset=5),
- STLVmFlowVar(name=u"dst",
- min_value=self.p1_dst_start_ip,
- max_value=self.p1_dst_end_ip,
- size=4, op=u"inc"),
- STLVmWrFlowVar(fv_name=u"dst", pkt_offset=u"IP.dst"),
- STLVmFixIpv4(offset=u"IP")])
+ vm1 = STLScVmRaw(
+ [
+ STLVmFlowVar(
+ name=u"mac_dst",
+ min_value=0,
+ max_value=3,
+ size=1,
+ op=u"inc"
+ ),
+ STLVmFlowVar(
+ name=u"dst",
+ min_value=self.p1_dst_start_ip,
+ max_value=self.p1_dst_end_ip,
+ size=4,
+ op=u"inc"
+ ),
+ STLVmWrFlowVar(
+ fv_name=u"dst",
+ pkt_offset=u"IP.dst"
+ ),
+ STLVmFixIpv4(
+ offset=u"IP"
+ )
+ ]
+ )