Skip to content

Conversation

@Vibhu-gslab
Copy link
Contributor

Change Summary

Add packet type match criteria support in traffic_policies

Related Issue(s)

Fixes #6047

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Added new data model

How to test

CI

Checklist

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)

@Vibhu-gslab Vibhu-gslab self-assigned this Oct 24, 2025
@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 Oct 24, 2025
@github-actions
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-6050
# Activate the virtual environment
source test-avd-pr-6050/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Vibhu-gslab/avd.git@traffic_policies_packet_type#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/Vibhu-gslab/avd.git#/ansible_collections/arista/avd/,traffic_policies_packet_type --force
# Optional: Install AVD examples
cd test-avd-pr-6050
ansible-playbook arista.avd.install_examples

@Vibhu-gslab Vibhu-gslab changed the title Feat(eos_cli_config_gen): Add packet type match criteria support in traffic_policies (WIP) Feat(eos_cli_config_gen): Add packet type match criteria support in traffic_policies Oct 24, 2025
Copy link
Contributor

@Shivani-gslab Shivani-gslab left a comment

Choose a reason for hiding this comment

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

LGTM

@Shivani-gslab Shivani-gslab marked this pull request as ready for review October 27, 2025 11:56
@Shivani-gslab Shivani-gslab requested review from a team as code owners October 27, 2025 11:56
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.

let's take a step back and agree on a data model.

As you can see from the issue there is also a multicast option on some platforms (we need to find one)

      packet type
         vxlan decap [ exclude ]
         multicast

Any reason to not keep a packet_type top level?

https://www.arista.com/en/support/toi/eos-4-24-2f/14550-support-for-traffic-policy-on-interfaces

@Vibhu-gslab Vibhu-gslab requested a review from gmuloc October 29, 2025 07:06
@Vibhu-gslab
Copy link
Contributor Author

let's take a step back and agree on a data model.

As you can see from the issue there is also a multicast option on some platforms (we need to find one)

      packet type
         vxlan decap [ exclude ]
         multicast

Any reason to not keep a packet_type top level?

https://www.arista.com/en/support/toi/eos-4-24-2f/14550-support-for-traffic-policy-on-interfaces

Added multicast

keys:
vxlan:
type: str
valid_values: ["decap", "decap exclude"]
Copy link
Contributor

Choose a reason for hiding this comment

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

both can be configured at the same time so this schema won't work right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked on EOS-4.35.0F-44178984.4350F node we can not configure both.

{# -- Packet Type #}
{% set row.packet_type = [] %}
{% if match.packet_type.vxlan is arista.avd.defined %}
{% do row.packet_type.append(match.packet_type.vxlan) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to keep something about VXLAN or it is not understandbale

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 vxlan

@Vibhu-gslab Vibhu-gslab marked this pull request as draft October 30, 2025 05:58
@Vibhu-gslab Vibhu-gslab requested a review from gmuloc October 30, 2025 07:26
@Vibhu-gslab Vibhu-gslab marked this pull request as ready for review October 30, 2025 07:26
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Feat(eos_cli_config_gen): Add packet type match criteria support in traffic_policies

4 participants