aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
251 stars 186 forks source link

Fix: Change the required arguments for eos_cli_config_gen action plugin #4152

Closed gmuloc closed 3 days ago

gmuloc commented 6 days ago

Change Summary

For people using the arista.avd.eos_cli_config_gen action plugin directly some

Component(s) name

plugins arista.avd.eos_cli_config_gen

Proposed changes

Leverage required_if for config, structured_config and documentation filenames

How to test

Tested locally using argspec

Checklist

Repository Checklist

github-actions[bot] commented 6 days ago

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-4152
# Activate the virtual environment
source test-avd-pr-4152/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@fix-eos-cli-config-argument-spec#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/gmuloc/avd.git#/ansible_collections/arista/avd/,fix-eos-cli-config-argument-spec --force
# Optional: Install AVD examples
cd test-avd-pr-4152
ansible-playbook arista.avd.install_examples