-
Notifications
You must be signed in to change notification settings - Fork 212
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
Doc(eos_designs,eos_cli_config_gen): Fix incorrect schemas #4691
base: devel
Are you sure you want to change the base?
Doc(eos_designs,eos_cli_config_gen): Fix incorrect schemas #4691
Conversation
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-4691
# Activate the virtual environment
source test-avd-pr-4691/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ClausHolbechArista/avd.git@fix/eos_designs/schema-default-values#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/,fix/eos_designs/schema-default-values --force
# Optional: Install AVD examples
cd test-avd-pr-4691
ansible-playbook arista.avd.install_examples |
...pyavd/_eos_cli_config_gen/schema/schema_fragments/application_traffic_recognition.schema.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_designs/docs/input-variables.md
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_network_services.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_p2p_links.schema.yml
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_node_type.schema.yml
Show resolved
Hide resolved
valid_values: | ||
- p2p | ||
- port-channel | ||
- p2p-vrfs | ||
- lan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we end up maintaining this in two places - would it not be better to have the other one refer to here and augment it with default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be counterintuitive to ref towards the child that inherits from the parent. I think we can live with maintaining this in two places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or a defs without default somewhere and both reference it and add default where needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit much to not maintain 4 strings.
...pyavd/_eos_cli_config_gen/schema/schema_fragments/application_traffic_recognition.schema.yml
Outdated
Show resolved
Hide resolved
...le_collections/arista/avd/roles/eos_designs/docs/tables/network-services-l2vlans-settings.md
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_designs/docs/tables/network-services-vrfs-settings.md
Show resolved
Hide resolved
...pyavd/_eos_cli_config_gen/schema/schema_fragments/application_traffic_recognition.schema.yml
Outdated
Show resolved
Hide resolved
…pplication_traffic_recognition.schema.yml
ansible_collections/arista/avd/roles/eos_designs/docs/tables/node-type-keys.md
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Change Summary
Fix incorrect schemas
Proposed changes
During development of Python classes and refactoring we hit conflicts between the code and the schema. This PR updates the schemas to conform to the implementation in the code.
How to test
No changes to inputs or behavior. This is only to reflect the correct defaults / schemas in the documentation.
Checklist
User Checklist
Repository Checklist