sonic-utilities
sonic-utilities copied to clipboard
sonic-utilities: Add CLI commands to set sflow drop-monitor-limit
- 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 [email protected]
- :white_check_mark: login: sflow (547230469a5866ef6030337965a988cf2d277874, f73eaa5b161e6baadc880b99d7446156e90724eb)
- :x: The email address for the commit (686f87b5d46455527a843c0addbe01d583399aef) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please submit a support request ticket.