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

Issue263 : Added model filter in neighbordb #403

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

az-blip
Copy link

@az-blip az-blip commented Apr 4, 2024

Hello,
Like some other people asked for, we needed to filter definitions by switch model. In our case, it was for EOS version compatibility with older switches.
We tried to add the feature in this small patch. This allow to add a "model" parameter in the neighbordb patterns, as a regular expression.
We're actually running our forked version in production, and everything seems fine.
We also added information about this filter in the "documentation" section.

Christophe and Alain
University of Strasbourg (FR)

ztpserver/controller.py Outdated Show resolved Hide resolved
Improve pattern validation to account for model attribute
@dlobato dlobato force-pushed the issue263_model_filter branch from ab213e1 to cb726b6 Compare May 1, 2024 12:34
Copy link
Contributor

@dlobato dlobato left a comment

Choose a reason for hiding this comment

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

Have a look at the tests I'd added to check if I'm checking the right use cases

docs/config.rst Outdated Show resolved Hide resolved
@dlobato dlobato merged commit 9588396 into arista-eosplus:develop Jul 2, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants