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_designs): Remove legacy interface_descriptions function #4300

Merged

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Jul 31, 2024

Change Summary

In AVD 4.x some new data structure was introduced to give more flexibility when subclasses InterfaceDescription
Also move the classes to pyavd.api.interface_descriptions

Related Issue(s)

Address TODO in the code

Component(s) name

arista.avd.eos_designs

Proposed changes

Remove old functions

How to test

descriptions in molecule don't change

Checklist

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)

@gmuloc gmuloc requested review from a team as code owners July 31, 2024 13:17
Copy link

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4300
# Activate the virtual environment
source test-avd-pr-4300/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@refactor-interface-descriptions#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/gmuloc/avd.git#/ansible_collections/arista/avd/,refactor-interface-descriptions --force
# Optional: Install AVD examples
cd test-avd-pr-4300
ansible-playbook arista.avd.install_examples

@gmuloc gmuloc requested a review from tgodaA July 31, 2024 13:17
@gmuloc gmuloc added this to the v5.0.0-dev1 milestone Jul 31, 2024
@github-actions github-actions bot added type: documentation Improvements or additions to documentation state: CI Updated CI scenario have been updated in the PR labels Jul 31, 2024
@gmuloc gmuloc changed the title Refactor(eos_designs): Remove legacy intefrace_descriptions function Refactor(eos_designs): Remove legacy interface_descriptions function Jul 31, 2024
Copy link

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

@github-actions github-actions bot added the state: conflict PR with conflict label Jul 31, 2024
Copy link

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Jul 31, 2024
@ClausHolbechArista ClausHolbechArista removed this from the v5.0.0-dev1 milestone Aug 2, 2024
@gmuloc gmuloc added this to the v5.0.0-dev2 milestone Aug 2, 2024
@github-actions github-actions bot added the state: conflict PR with conflict label Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

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

Copy link

github-actions bot commented Aug 8, 2024

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Aug 8, 2024
@github-actions github-actions bot added the role: eos_designs issue related to eos_designs role label Aug 8, 2024
Copy link

sonarcloud bot commented Aug 9, 2024

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Aug 9, 2024
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 merged commit c9e01b9 into aristanetworks:devel Aug 9, 2024
40 checks passed
jrecchia1029 pushed a commit to jrecchia1029/ansible-avd that referenced this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Refactor(eos_designs) role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants