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

sonic-utilities: Add CLI commands to set sflow drop-monitor-limit #3150

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sflow
Copy link

@sflow sflow commented Feb 3, 2024

  • added CLI: config sflow drop-monitor-limit 1-999 (0 to disable)
  • added line to show sflow output to indicate current setting
  • added test to ensure that out-of-range value is denied

The effect is to add the redis field drop_monitor_limit to the sflow configuration table in redis, as described in pull-request PR#1484 on the sonic-net/SONiC repo.

Note: hsflowd version 2.0.52 will apply this setting. Older versions will ignore it.

Example:

% sudo config sflow drop-monitor-limit 50
% show sflow

sFlow Global Information:
sFlow Admin State: up
sFlow Sample Direction: rx
sFlow Polling Interval: default
sFlow AgentID: default
sFlow Drop Rate Limit: 50

Signed-off-by: Neil McKee neil.mckee@inmon.com

* added CLI: config sflow drop-monitor-limit 1-999 (0 to disable)
* added line to show sflow output to indicate current setting
* added test to ensure that out-of-range value is denied

The effect is to add the redis field drop_monitor_limit to the
sflow configuration table in redis, as described in
pull-request sonic-net#1484 on the sonic-net/SONiC repo.

Note: hsflowd version 2.0.52 will apply this setting.
Older versions will ignore it.

Signed-off-by: Neil McKee  neil.mckee@inmon.com
Copy link

linux-foundation-easycla bot commented Feb 3, 2024

CLA Missing ID CLA Not Signed

sflow added 2 commits February 5, 2024 19:16
* added CLI: config sflow drop-monitor-limit 1-999 (0 to disable)
* added line to show sflow output to indicate current setting
* added test to ensure that out-of-range value is denied

The effect is to add the redis field drop_monitor_limit to the
sflow configuration table in redis, as described in
pull-request sonic-net#1484 on the sonic-net/SONiC repo.

Note: hsflowd version 2.0.52 will apply this setting.
Older versions will ignore it.

Signed-off-by: Neil McKee  neil.mckee@inmon.com
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.

1 participant