Fix the default value for `hardware_offload_type` field

In the 'port-hardware-offload-type' extension, the default value for
``hardware_offload_type`` should be ATTR_NOT_SPECIFIED, in case this
value is not defined in the API call when creating a new port.

NOTE: this extension is still under development thus it is legit to
modify it.

Related-Bug: #2013228
Change-Id: I7aadac451c59388c3d647f4ec5380e18a72c67be
This commit is contained in:
Rodolfo Alonso Hernandez 2023-07-04 09:04:42 +00:00
parent 8ccdecc7d1
commit 61029af216

View File

@ -35,7 +35,7 @@ RESOURCE_ATTRIBUTE_MAP = {
'convert_to': converters.convert_to_string,
'enforce_policy': True,
'required_by_policy': False,
'default': None,
'default': constants.ATTR_NOT_SPECIFIED,
'is_visible': True,
'validate': {
'type:values': constants.VALID_HWOL_TYPES}