Skip to content

Fix buffer_profile GCU validator to pass scope to rdma_config_update_validator#316

Merged
cyw233 merged 1 commit intoAzure:202405from
anamehra:anamehra/rollback_fix_202405
Apr 22, 2026
Merged

Fix buffer_profile GCU validator to pass scope to rdma_config_update_validator#316
cyw233 merged 1 commit intoAzure:202405from
anamehra:anamehra/rollback_fix_202405

Conversation

@anamehra
Copy link
Copy Markdown
Contributor

@anamehra anamehra commented Apr 20, 2026

Signed-off-by: anamehra anamehra@cisco.com

validate_field_operation invokes validators as (scope, patch_element). buffer_profile_config_update_validator only took patch_element and called rdma_config_update_validator with one argument, causing TypeError on field-level BUFFER_PROFILE patches. Accept scope and forward both arguments.

What I did

Fixed GCU config rollback for buffer profile for 202405

How I did it

Fixed buffer_profile_config_update_validator signature to include scope.

How to verify it

Run rollback tests as part of test_update_cable_length.py

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Screenshot 2026-04-20 at 7 32 40 PM

…validator

validate_field_operation invokes validators as (scope, patch_element).
buffer_profile_config_update_validator only took patch_element and called
rdma_config_update_validator with one argument, causing TypeError on
field-level BUFFER_PROFILE patches. Accept scope and forward both arguments.

Signed-off-by: anamehra <anamehra@cisco.com>
@anamehra anamehra force-pushed the anamehra/rollback_fix_202405 branch from a5529bc to 5ca973f Compare April 20, 2026 22:19
@anamehra anamehra marked this pull request as draft April 21, 2026 00:08
@anamehra anamehra marked this pull request as ready for review April 21, 2026 02:33
@anamehra
Copy link
Copy Markdown
Contributor Author

Hi @cyw233 , please review. Thanks

@cyw233
Copy link
Copy Markdown

cyw233 commented Apr 22, 2026

Passing for me as well
image

@cyw233 cyw233 merged commit f2469f3 into Azure:202405 Apr 22, 2026
2 checks passed
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.

2 participants