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

Restore obsolete l3_server port role for backward compatibility #433

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Oct 7, 2024

#428 eliminated the l3_server Port Role which existed in the API but has been removed from the Apstra GUI ages ago.

As of 4.1.0, none of the baked-in Logical Devices or Interface Maps specify the l3_server port role, so it's likely only present if we (mistakenly) added it.

This PR restores that Port Role to the PortRoles enum along with:

  • omission of l3_server in TestLogicalDevicePortRoles_SetAll()
  • LogicalDevicePortRoles.Validate() which errors when l3_server is set
  • calls to LogicalDevicePortRoles.Validate() in Logical Device and Interface Map create/modify functions
  • tests

The goal is to ensure we can read/parse l3_server if it happens to be set on an existing object while ensuring that we never send (allow the user to set it) in future operations.

Closes #432

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.

Restore obsolete l3_server port role for backward compatibility
1 participant