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)!: Raise AVD error if sFlow is enabled but sflow_settings.destinations is not configured #4402

Merged
merged 8 commits into from
Sep 4, 2024

Conversation

MaheshGSLAB
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB commented Aug 28, 2024

Change Summary

Raise an AVD error if sFlow is enabled but sflow_settings.destinations is not configured.

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_designs

Proposed changes

Added AVD error in case sFlow is enabled but sflow_settings.destinations is not configured.

How to test

Run molecule

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)

@MaheshGSLAB MaheshGSLAB self-assigned this Aug 28, 2024
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-4402
# Activate the virtual environment
source test-avd-pr-4402/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@todo-sflow#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/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,todo-sflow --force
# Optional: Install AVD examples
cd test-avd-pr-4402
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Aug 28, 2024
@MaheshGSLAB MaheshGSLAB changed the title Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but destinations are not configured Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but sflow_settings.destination is not configured. Aug 28, 2024
@MaheshGSLAB MaheshGSLAB changed the title Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but sflow_settings.destination is not configured. Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but 'sflow_settings.destination' is not configured Aug 28, 2024
@MaheshGSLAB MaheshGSLAB changed the title Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but 'sflow_settings.destination' is not configured Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but sflow_settings.destination is not configured Aug 28, 2024
@github-actions github-actions bot added type: documentation Improvements or additions to documentation state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Aug 28, 2024
@MaheshGSLAB MaheshGSLAB changed the title Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but sflow_settings.destination is not configured Refactor(eos_designs)!: Raise AVD error if sFlow is enabled but sflow_settings.destinations is not configured Aug 28, 2024
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review August 29, 2024 07:31
@MaheshGSLAB MaheshGSLAB requested review from a team as code owners August 29, 2024 07:31
Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
Copy link
Contributor

@Shivani-gslab Shivani-gslab left a comment

Choose a reason for hiding this comment

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

LGTM

MaheshGSLAB and others added 2 commits September 2, 2024 19:46
Copy link

sonarcloud bot commented Sep 3, 2024

@ClausHolbechArista ClausHolbechArista merged commit 2096a31 into aristanetworks:devel Sep 4, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Refactor(eos_designs)! 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.

6 participants