Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ForbiddenWhenValueIs for mlag_info attribute #448

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Nov 14, 2023

The SwitchLagInfoValidator existed only to ensure that when mlag_info is supplied for a leaf switch, that redundancy_protocol is set to mlag.

Now that we have RequiredWhenValueIs and ForbiddenWhenValueIs validators, each of which can refer to a neighboring attribute and specify a trigger value for that attribute, we have no need for the implementation-specific SwitchLagInfoValidator validator.

  • Convert design. LeafSwitch schema to use RequiredWhenValueIs and ForbiddenWhenValueIs validators
  • Eliminate now obsolete SwitchLagInfoValidator
  • Minor readability and error message improvements to ForbiddenWhenValueIsValidator

Closes #443

@chrismarget-j chrismarget-j changed the title WIP: Use ForbiddenWhenValueIs for mlag_info attribute Use ForbiddenWhenValueIs for mlag_info attribute Nov 15, 2023
@chrismarget-j chrismarget-j merged commit c3654f3 into main Nov 15, 2023
1 check passed
@chrismarget-j chrismarget-j deleted the improve-leaf-switch-validation branch November 15, 2023 17:25
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.

Ensure mlag_info is supplied
2 participants