- vm2 = STLScVmRaw([STLVmFlowVar(name="mac_dst",
- min_value=self.nf_nodes,
- max_value=self.nf_chains*self.nf_nodes,
- size=1, step=self.nf_nodes, op="inc"),
- STLVmWrFlowVar(fv_name="mac_dst", pkt_offset=4),
- STLVmFlowVar(name="src",
- min_value=self.p2_src_start_ip,
- max_value=self.p2_src_end_ip,
- size=4, op="inc"),
- STLVmWrFlowVar(fv_name="src", pkt_offset="IP.src"),
- STLVmFixIpv4(offset="IP")])
+ vm2 = STLScVmRaw(
+ [
+ STLVmFlowVar(
+ name=u"mac_dst",
+ min_value=self.nf_nodes,
+ max_value=self.nf_chains*self.nf_nodes,
+ size=1,
+ step=self.nf_nodes,
+ op=u"inc"
+ ),
+ STLVmWrFlowVar(
+ fv_name=u"mac_dst",
+ pkt_offset=4
+ ),
+ STLVmFlowVar(
+ name=u"src",
+ min_value=self.p2_src_start_ip,
+ max_value=self.p2_src_end_ip,
+ size=4,
+ op=u"inc"
+ ),
+ STLVmWrFlowVar(
+ fv_name=u"src",
+ pkt_offset=u"IP.src"
+ ),
+ STLVmFixIpv4(
+ offset=u"IP"
+ )
+ ]
+ )