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_cli_config_gen): add_hardware_port_group_knob #4500

Conversation

ccsnw
Copy link
Contributor

@ccsnw ccsnw commented Sep 20, 2024

Change Summary

Add option to for port-group activation (available on several platform e.g. 7050CX3-32).

Option to activate multiple port-groups (dunno if there is hardware with more than 1 port-group available today)

Attention: There is no doc for "hardware" yet and I haven't added it - as I don't use it.

Related Issue(s)

Fixes #<N/A>

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Similar model used as "speed-groups"

How to test

  • added molecule test
  • linted code
  • ran pre-commit checks

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • [o] 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)

@ccsnw ccsnw requested review from a team as code owners September 20, 2024 09:34
@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 Sep 20, 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-4500
# Activate the virtual environment
source test-avd-pr-4500/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ccsnw/ansible-avd.git@Feat(eos_cli_config_gen)-add_hardware_port_group_knob#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/ccsnw/ansible-avd.git#/ansible_collections/arista/avd/,Feat(eos_cli_config_gen)-add_hardware_port_group_knob --force
# Optional: Install AVD examples
cd test-avd-pr-4500
ansible-playbook arista.avd.install_examples

@ccsnw ccsnw changed the title Feat(eos_cli_config_gen)-add_hardware_port_group_knob Feat(eos_cli_config_gen):add_hardware_port_group_knob Sep 20, 2024
@ccsnw ccsnw changed the title Feat(eos_cli_config_gen):add_hardware_port_group_knob Feat(eos_cli_config_gen): add_hardware_port_group_knob Sep 20, 2024
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. Thanks!

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Sep 23, 2024
@ClausHolbechArista ClausHolbechArista requested a review from a team September 23, 2024 06:07
Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

LGTM

@ccsnw we checked the CLI ordering with Claus on a device so slight modification but will merge as soon as CI finishes

@ccsnw
Copy link
Contributor Author

ccsnw commented Sep 23, 2024

thanks guys! I missed this one - will be more careful next time.

I have one other thing to add, will follow soon!

Copy link

sonarcloud bot commented Sep 23, 2024

@gmuloc gmuloc merged commit bcdf59b into aristanetworks:devel Sep 23, 2024
43 checks passed
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: Feat(eos_cli_config_gen) 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