Hi,
Excuse me for jumping in.
How about using "dict" to store temporary match fields like;
match_fields = {
'in_port': in_port,
}
# Do something
match_fields['vlan_vid'] = vlan_vid
# Do something
match = parser.OFPMatch(**match_fields)
Thanks,
Iwase
On 2018年04月
On Mon, 09 Apr 2018 23:30:32 +0900,
marcosab...@inf.ufg.br wrote:
>
> Hello,
>
> I used OpenFlow 1.3.
> How i set new field in OFPmatch after i build the class?
> For exemple:
>
> match = ofp.OFPMatch(in_port=port)
> match.vlan_vid = vlan
>
> When i set like this OpenFlow set 'in_port' but not
Hello,
I used OpenFlow 1.3.
How i set new field in OFPmatch after i build the class?
For exemple:
match = ofp.OFPMatch(in_port=port)
match.vlan_vid = vlan
When i set like this OpenFlow set 'in_port' but not add 'vlan_vid' in match.
Thanks!
-