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月10日 14:13, IWAMOTO Toshihiro wrote:
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 add 'vlan_vid' in match.
Please check the __init__ implementation of OFPMatch.
It doesn't support such a coding style. You need to pass all the match
fields to the constructor.
--
IWAMOTO Toshihiro
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel