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

Feat(eos_designs, eos_cli_config_gen)!: Remove default "switchport" and remove logic from eos_cli_config_gen #2430

Conversation

ClausHolbechArista
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista commented Jan 17, 2023

Change Summary

Remove default "switchport" and remove logic from eos_cli_config_gen

These changes are potentially breaking for users of eos_cli_config_gen, they will be transparent for users of eos_designs.

Component(s) name

  • arista.avd.eos_designs
  • arista.avd.eos_cli_config_gen

Proposed changes

Fixes: aristanetworks/avd-internal#89

eos_cli_config_gen

  1. Remove undocumented default value of type under ethernet_interfaces and port_channel_interfaces. It was 'switched'
  2. Result of 1. is that interface configs will no longer render switchport unless type: 'switched' is specifically set.
  3. Remove print_ethernet logic from ethernet_interfaces jinja template in eos_cli_config_gen, to no longer ignore interface settings on port-channel members.
  4. Update device documentation templates to only print interfaces under L2 Interfaces if type == 'switched'
  5. Update molecule data with type where needed.
  6. Fix a couple of files with erronous molecule data - hidden by previous print_ethernet logic.
  7. Update old documentation to show type for switched interfaces.
  8. Update schema with note on type is required for the interface to show up in documentation (previously it defaulted to switched so interfaces without type showed up under "L2 Interfaces".

re. 8. this will change when we refactor to classify interfaces based on actual config keys instead of type.

eos_designs

  1. Update eos_designs to add type as required to all generated interface configs
  2. Update eos_designs to only render valid config for port_channel members (was previously ignored because of the print_ethernet logic in eos_cli_config_gen
  3. Adjust molecule configs to render the same configs as before. Structured configs change because of reordering and removal of invalid configs, but no cfg changes.

How to test

Updated molecule scenarios to render the same configs for eos_designs

Updated molecule scenarios to render mostly the same configs for eos_cli_config_gen. A few fixes have been done for wrongful switchport under subinterface and trunk information on port-channel member.

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@ClausHolbechArista ClausHolbechArista requested a review from a team as a code owner January 17, 2023 13:16
@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated labels Jan 17, 2023
@ClausHolbechArista ClausHolbechArista force-pushed the refactor_port_channel_member_config branch from fc63326 to a75e9d2 Compare January 17, 2023 14:23
@github-actions github-actions bot added type: code quality CI and development toolset and removed state: Documentation role Updated role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role labels Jan 17, 2023
@tgodaA
Copy link
Contributor

tgodaA commented Jan 17, 2023

Why am I seeing the changes of Schemas but not the switchport. Something looks wrong @ClausHolbechArista

@github-actions github-actions bot added the state: conflict PR with conflict label Jan 17, 2023
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the state: conflict PR with conflict label Jan 17, 2023
@github-actions
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ClausHolbechArista ClausHolbechArista added this to the v4.0.0-rc1 milestone Jan 18, 2023
@github-actions github-actions bot removed state: CI Updated CI scenario have been updated in the PR type: code quality CI and development toolset labels Feb 8, 2023
@ClausHolbechArista ClausHolbechArista force-pushed the refactor_port_channel_member_config branch from c19204d to f8f0c31 Compare February 9, 2023 11:02
@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated state: conflict PR with conflict labels Feb 9, 2023
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

emilarista
emilarista previously approved these changes Mar 10, 2023
Copy link
Contributor

@emilarista emilarista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed code + ran against a few different repositories. No unexpected config changes seen. LGTM!

@ClausHolbechArista ClausHolbechArista force-pushed the refactor_port_channel_member_config branch from f8f0c31 to 57cdc36 Compare March 14, 2023 06:51
@github-actions github-actions bot removed the state: conflict PR with conflict label Mar 14, 2023
@github-actions
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot added the state: conflict PR with conflict label May 11, 2023
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@ClausHolbechArista ClausHolbechArista force-pushed the refactor_port_channel_member_config branch from af12b46 to 3bb1d41 Compare May 11, 2023 15:16
@github-actions github-actions bot removed the state: conflict PR with conflict label May 11, 2023
@github-actions
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ClausHolbechArista ClausHolbechArista force-pushed the refactor_port_channel_member_config branch from 3add680 to 5494696 Compare May 11, 2023 17:00
@github-actions github-actions bot added type: documentation Improvements or additions to documentation and removed type: documentation Improvements or additions to documentation labels May 12, 2023
Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@carlbuchmann carlbuchmann force-pushed the refactor_port_channel_member_config branch from 8603e1d to fc514f9 Compare May 12, 2023 19:26
@carlbuchmann carlbuchmann merged commit e00a948 into aristanetworks:devel May 12, 2023
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Feat(eos_designs|eos_cli_config_gen)! role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants