-
Notifications
You must be signed in to change notification settings - Fork 233
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 interface TE twamp-light with fallback knobs #4935
base: devel
Are you sure you want to change the base?
Feat(eos_cli_config_gen): Add interface TE twamp-light with fallback knobs #4935
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-4935
# Activate the virtual environment
source test-avd-pr-4935/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/emilarista/ansible-avd.git@eos_cli_config_gen/if-te-twamp-fallback#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/emilarista/ansible-avd.git#/ansible_collections/arista/avd/,eos_cli_config_gen/if-te-twamp-fallback --force
# Optional: Install AVD examples
cd test-avd-pr-4935
ansible-playbook arista.avd.install_examples |
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/ethernet_interfaces.schema.yml
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/host1.md
Show resolved
Hide resolved
4273159
to
d6a0e21
Compare
for more information, see https://pre-commit.ci
ansible_collections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/host1.md
Show resolved
Hide resolved
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.
LGTM
# Mutually exclusive with min_delay_static, if both are defined min_delay_static takes precedence. | ||
min_delay_dynamic: | ||
twamp_light_fallback: | ||
number: <int; 1-16777215; required> |
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.
Limit vary according to unit. The current limit is in microseconds.
wan1-dc1(config-if-Po130)# traffic-engineering min-delay dynamic twamp-light fallback 16777214 milli
seconds
% Minimum delay value exceeds 16777215 us
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.
You are right, the cli does not hint this unless you try to configure it. Should i remove the min/max setting and add description with limits or change the data model and make something like twamp_light_fallback.milliseconds/....microseconds to have separate min/max values?
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.
yeah, same issue is applicable to the existing implementation for static delay:
veos-4-33-0f(config-s-s7b-if-Et5)#traffic-engineering min-delay static 16777215 milliseconds
% Minimum delay value exceeds 16777215 us
veos-4-33-0f(config-s-s7b-if-Et5)#traffic-engineering min-delay static 16777215 microseconds
veos-4-33-0f(config-s-s7b-if-Et5)#
Maximum min-delay in milliseconds is 16777
veos-4-33-0f(config-s-s7b-if-Et5)#traffic-engineering min-delay static 16777 milliseconds
veos-4-33-0f(config-s-s7b-if-Et5)#traffic-engineering min-delay static 16778 milliseconds
% Minimum delay value exceeds 16777215 us
veos-4-33-0f(config-s-s7b-if-Et5)#
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.
You are right, the cli does not hint this unless you try to configure it. Should i remove the min/max setting and add description with limits or change the data model and make something like twamp_light_fallback.milliseconds/....microseconds to have separate min/max values?
Yes i think we can remove the min/max and update the limit in description for both milli and micro seconds. But lets confirm from @ClausHolbechArista @gmuloc too.
Quality Gate passedIssues Measures |
…knobs
Change Summary
Add dynamic min-delay with twamp-light and fallback knobs.
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
How to test
Tested with molecule and on device.
Checklist
Repository Checklist