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_designs): Add metric bandwidth support for l3_interfaces #5017

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

ayushmittal-arista
Copy link
Contributor

Change Summary

Add receive_bandwidth, transmit_bandwidth fields under l3_interfaces, these will be set under router path selection if these interfaces are configured in the path groups.

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_designs

Proposed changes

Add receive_bandwidth, transmit_bandwidth fields under l3_interfaces,

How to test

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)

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-5017
# Activate the virtual environment
source test-avd-pr-5017/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ayushmittal-arista/ayush-avd.git@rxtx1#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/ayushmittal-arista/ayush-avd.git#/ansible_collections/arista/avd/,rxtx1 --force
# Optional: Install AVD examples
cd test-avd-pr-5017
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Feb 12, 2025
@ayushmittal-arista ayushmittal-arista marked this pull request as ready for review February 12, 2025 08:05
@ayushmittal-arista ayushmittal-arista requested review from a team as code owners February 12, 2025 08:05
Comment on lines 68 to 81
receive_bandwidth:
type: int
description: Maximum allowed receive bandwidth (download) in Mbps for this interface.
min: 1
max: 4294967295
convert_types:
- str
transmit_bandwidth:
type: int
description: Maximum allowed transmit bandwidth (upload) in Mbps for this interface.
min: 1
max: 4294967295
convert_types:
- str
Copy link
Contributor

Choose a reason for hiding this comment

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

we may need to limit to physical interfaces only (waiting on engineering answer).
if so we should add a restriction in the code and add a negative unit test

It would be good to add to WAN how-to as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added to how-to, please check.

For physical interface check, still wait for the EOS reply.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC - AVD AutoVPN/WAN role: eos_designs issue related to eos_designs 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.

2 participants