-
Notifications
You must be signed in to change notification settings - Fork 232
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): Generate sFlow egress commands #2767
Conversation
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.
Very open comments here!
For reference:
Leaf1(config)#show cli commands | grep "sflow interface"
[no|default] sflow interface disable default
[no|default] sflow interface egress enable default
[no|default] sflow interface egress unmodified enable default
Behavior on EOS 4.27.3F
Leaf1(config)#default sflow interface egress enable default
Leaf1(config)#show run | i sflow
<EMPTY>
Leaf1(config)#sflow interface egress enable default
Leaf1(config)#show run | i sflow
sflow interface egress unmodified enable default
Leaf1(config)#default sflow interface egress enable default
Leaf1(config)#sflow interface egress un enable default
Leaf1(config)#show run | i sflow
sflow interface egress unmodified enable default
So not sure if there is a difference between enable_default and unmodified_default
Wondering if this could impact the model?
Could this make sense? (though seems like always enable_default is needed)
egress:
type: dict
keys:
unmodified:
type: bool
enable_default:
type: bool
Egress sFlow is a platform dependent feature and for this reason and to distinguish different behaviours, the commands used to activate it are different. For SAND platforms sflow will sample all defined packets:
For STRATA platforms sflow will sample defined packets ingress of an interface wich are exiting a defined interface, for this the keywork "unmodified" is used:
I am also proposing a new data model:
|
...le_collections/arista/avd/roles/eos_cli_config_gen/schemas/schema_fragments/sflow.schema.yml
Outdated
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.
so the last thing I have as a comment is that it is possible to render both on the same device which is not valid.
@ClausHolbechArista Wondering if we should for now in the template enforce that only one should be set?
Otherwise the PR content is good for me and I will approve it
We can implement them as mutually exclusive (use |
With that in mind, actually your suggestion @gmuloc of having |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
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
Change Summary
Knob to enable unmodified egress sflow on the CLI.
Related Issue(s)
To be used in #2311
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Add a new keys to the data model:
How to test
Molecule scenario added
CLI testing for command:
This is a platform-dependent command, but adding no check following the component philosophy.
Checklist
User Checklist
Repository Checklist