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

Refactor(eos_cli_config_gen): Wildcard dict to list for port-channel-interfaces #1665

Conversation

Shivani-chourasiya
Copy link
Contributor

@Shivani-chourasiya Shivani-chourasiya commented Apr 4, 2022

"Wildcard Keyed Dict" to "List of Dicts" Data model migration

Data model key

port-channel-interfaces

Checklist

Contributor Checklist

  • Update README_v4.0.md with new data model
  • Update all host_vars under molecule scenario eos_cli_config_gen_v4.0 with new data model
  • Update templates/eos/< template >.j2 and templates/documentation/< template >.j2:
    • Add arista.avd.convert_dicts('<primary key>') filter for loops previously using wildcard keys
    • Update arista.avd.natural_sort('<primary key>') to sort on the primary key (if applicable)
  • Run molecule cd ansible_collections/arista/avd/molecule ; make cli-4.0-schema
    • Verify no changes to generated configs/docs

Reviewer Checklist

  • Reviewer 1: Claus

    • Verify data model changes
    • Verify that all molecule host_vars under eos_cli_config_gen_v4.0 has been updated to the new data model
    • Verify no changes to configs/docs on any molecule scenario
    • Verify that CI pass
  • Reviewer 2: Tony

    • Verify data model changes
    • Verify that all molecule host_vars under eos_cli_config_gen_v4.0 has been updated to the new data model
    • Verify no changes to configs/docs on any molecule scenario
    • Verify that CI pass

@Shivani-chourasiya Shivani-chourasiya requested a review from a team as a code owner April 4, 2022 16:32
@Shivani-chourasiya Shivani-chourasiya marked this pull request as draft April 4, 2022 16:32
@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated labels Apr 4, 2022
@Shivani-chourasiya Shivani-chourasiya force-pushed the port_channel_interfaces branch 2 times, most recently from 3948de0 to 29eb13f Compare April 4, 2022 17:23
@github-actions github-actions bot added the state: conflict PR with conflict label Apr 13, 2022
@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 Apr 13, 2022
@github-actions
Copy link

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

@Shivani-chourasiya Shivani-chourasiya marked this pull request as ready for review April 13, 2022 12:18
@github-actions github-actions bot added the state: conflict PR with conflict label Apr 17, 2022
@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 Apr 21, 2022
@github-actions
Copy link

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

@ClausHolbechArista ClausHolbechArista requested a review from a team April 21, 2022 08:40
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!!

@ClausHolbechArista ClausHolbechArista requested review from a team and tgodaA April 25, 2022 06:28
| {{ port_channel_interface }} | {{ description }} | {{ type }} | {{ mlag }} | {{ ipv6_address }} | {{ vrf }} | {{ mtu }} | {{ shutdown | lower }} | {{ ipv6_nd_ra_disabled | lower }} | {{ ipv6_nd_managed_config_flag | lower }} | {{ ipv6_acl_in }} | {{ ipv6_acl_out }} |
{% set ipv6_acl_in = port_channel_interface.ipv6_access_group_in | arista.avd.default("-") %}
{% set ipv6_acl_out = port_channel_interface.ipv6_access_group_out | arista.avd.default("-") %}
| {{ port_channel_interface.name }} | {{ description }} | {{ type }} | {{ mlag }} | {{ ipv6_address }} | {{ vrf }} | {{ mtu }} | {{ shutdown | lower }} | {{ ipv6_nd_ra_disabled | lower }} | {{ ipv6_nd_managed_config_flag | lower }} | {{ ipv6_acl_in }} | {{ ipv6_acl_out }} |
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to fix this lower filter on boolean in separate PR.

Copy link
Contributor

@tgodaA tgodaA left a comment

Choose a reason for hiding this comment

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

LGTM

@ClausHolbechArista ClausHolbechArista merged commit 9a89177 into aristanetworks:devel Apr 26, 2022
@Shivani-chourasiya Shivani-chourasiya deleted the port_channel_interfaces branch August 29, 2022 10:29
@Shivani-chourasiya Shivani-chourasiya removed their assignment Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC - AVD Schema role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants