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): Optimize handling of WAN internet exits #4372

Conversation

ClausHolbechArista
Copy link
Contributor

@ClausHolbechArista ClausHolbechArista commented Aug 19, 2024

Change Summary

Optimize handling of WAN internet exits

Related Issue(s)

Issue with errors from zscaler API calls for devices that do not use zscaler internet exit.

Component(s) name

arista.avd.eos_designs

Proposed changes

  • Avoid fetching zscaler endpoint information unless there are local interfaces for the Zscaler IE policy.

How to test

Already covered. Only performance / API usage impact.

Tested manually by Vinay and confirmed that with some auth issue all devices failed before and with the fix only the zscaler enabled devices failed.

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)

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-4372
# Activate the virtual environment
source test-avd-pr-4372/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git https://github.com/ClausHolbechArista/avd.git@refactor/cv_deploy/optimize-handling-of-internet-exit#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/ClausHolbechArista/avd.git#/ansible_collections/arista/avd/,refactor/cv_deploy/optimize-handling-of-internet-exit --force
# Optional: Install AVD examples
cd test-avd-pr-4372
ansible-playbook arista.avd.install_examples

@ClausHolbechArista ClausHolbechArista added the cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later label Aug 19, 2024
Copy link

sonarcloud bot commented Aug 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later rn: Refactor(eos_designs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant