| @@ 39-48 (lines=10) @@ | ||
| 36 | instructions=_new_list_of_instructions()) |
|
| 37 | ||
| 38 | ||
| 39 | def _new_match(): |
|
| 40 | """Crate new Match instance.""" |
|
| 41 | oxmtlv1 = OxmTLV(oxm_class=OxmClass.OFPXMC_OPENFLOW_BASIC, |
|
| 42 | oxm_field=OxmOfbMatchField.OFPXMT_OFB_ETH_TYPE, |
|
| 43 | oxm_hasmask=False, oxm_value=b'\x88\xcc') |
|
| 44 | oxmtlv2 = OxmTLV(oxm_class=OxmClass.OFPXMC_OPENFLOW_BASIC, |
|
| 45 | oxm_field=OxmOfbMatchField.OFPXMT_OFB_VLAN_VID, |
|
| 46 | oxm_hasmask=False, oxm_value=b'\x1e\xd7') |
|
| 47 | return Match(match_type=MatchType.OFPMT_OXM, |
|
| 48 | oxm_match_fields=[oxmtlv1, oxmtlv2]) |
|
| 49 | ||
| 50 | ||
| 51 | def _new_list_of_instructions(): |
|
| @@ 24-33 (lines=10) @@ | ||
| 21 | super().set_minimum_size(56) |
|
| 22 | ||
| 23 | ||
| 24 | def _new_match(): |
|
| 25 | """Crate new Match instance.""" |
|
| 26 | oxmtlv1 = OxmTLV(oxm_class=OxmClass.OFPXMC_OPENFLOW_BASIC, |
|
| 27 | oxm_field=OxmOfbMatchField.OFPXMT_OFB_ETH_TYPE, |
|
| 28 | oxm_hasmask=False, oxm_value=b'\x88\xcc') |
|
| 29 | oxmtlv2 = OxmTLV(oxm_class=OxmClass.OFPXMC_OPENFLOW_BASIC, |
|
| 30 | oxm_field=OxmOfbMatchField.OFPXMT_OFB_VLAN_VID, |
|
| 31 | oxm_hasmask=False, oxm_value=b'\x1e\xd7') |
|
| 32 | return Match(match_type=MatchType.OFPMT_OXM, |
|
| 33 | oxm_match_fields=[oxmtlv1, oxmtlv2]) |
|
| 34 | ||
| 35 | def _new_list_of_instructions(): |
|
| 36 | """Crate new ListOfInstruction.""" |
|