kytos-ng / python-openflow

Low level OpenFlow messages parser used by Kytos SDN Platform
https://kytos.io/
MIT License
0 stars 3 forks source link

make consistent GenericType initialization #60

Open ajoaoff opened 3 years ago

ajoaoff commented 3 years ago

Original issue opened by @erickvermot at https://github.com/kytos/python-openflow/issues/426.

GenericType accepts a value named argument in its initialization that defaults to None. I propose we keep the GenericType derivatives consistent, naming their initialization argument value and letting them accept None.

BinaryData case is treated in: https://github.com/kytos/python-openflow/issues/420

and Pad is treated as a special case.

The proposed modifications were introduced in #392 , and is now isolated in another branch (https://github.com/kytos/python-openflow/compare/master...erickvermot:generictype_init_value_pr) since #392 was rejected.