Skip to content

Fix: Add TLV_LIST validation support to meta validation functions#1804

Open
kallal79 wants to merge 1 commit intosonic-net:masterfrom
kallal79:fix-tlv-list-validation-support
Open

Fix: Add TLV_LIST validation support to meta validation functions#1804
kallal79 wants to merge 1 commit intosonic-net:masterfrom
kallal79:fix-tlv-list-validation-support

Conversation

@kallal79
Copy link
Copy Markdown

This commit addresses issue #337 by adding missing support for SAI_ATTR_VALUE_TYPE_TLV_LIST in the meta validation functions.

Changes made:

  • Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_create()
  • Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_set()
  • Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_get()
  • Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_post_remove()

The implementation follows the same pattern as other list types (MAP_LIST, IP_ADDRESS_LIST, SEGMENT_LIST) using VALIDATION_LIST and VALIDATION_LIST_GET macros.

Test coverage:

  • Added TestTlvListValidation.cpp for bug condition exploration
  • Added TestTlvListPreservation.cpp for regression prevention
  • Updated Makefile.am to include new test files

This fix resolves the 'serialization type is not supported yet FIXME' error that was thrown when TLV_LIST attributes were processed in meta validation.

Fixes: #337

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

This commit addresses issue sonic-net#337 by adding missing support for
SAI_ATTR_VALUE_TYPE_TLV_LIST in the meta validation functions.

Changes made:
- Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_create()
- Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_set()
- Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_get()
- Added SAI_ATTR_VALUE_TYPE_TLV_LIST case to meta_generic_validation_post_remove()

The implementation follows the same pattern as other list types (MAP_LIST,
IP_ADDRESS_LIST, SEGMENT_LIST) using VALIDATION_LIST and VALIDATION_LIST_GET macros.

Test coverage:
- Added TestTlvListValidation.cpp for bug condition exploration
- Added TestTlvListPreservation.cpp for regression prevention
- Updated Makefile.am to include new test files

This fix resolves the 'serialization type is not supported yet FIXME' error
that was thrown when TLV_LIST attributes were processed in meta validation.

Fixes: sonic-net#337
Signed-off-by: kallal79 <kallal79@users.noreply.github.com>
@kallal79 kallal79 force-pushed the fix-tlv-list-validation-support branch from cb35dfc to 3f4e531 Compare March 22, 2026 20:41
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@kallal79
Copy link
Copy Markdown
Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 1804 in repo sonic-net/sonic-sairedis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for these value types in meta_validation

2 participants