.. _dellemc.enterprise_sonic.sonic_sflow_module:
************************************
dellemc.enterprise_sonic.sonic_sflow
************************************
**configure sflow settings on SONiC**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration for sflow sampling on devices running SONiC
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
Defines configuration and operational state data related to data plane traffic sampling based on sflow.
|
|
agent
string
|
|
The Agent interface
|
|
collectors
list
/ elements=dictionary
|
|
Configuration data for sflow collectors.
|
|
|
address
string
/ required
|
|
IP address of the sflow collector.
|
|
|
network_instance
string
|
Default:
"default"
|
name of the network instance containing the sflow collector
|
|
|
port
integer
|
Default:
6343
|
UDP port number for the sflow collector.
|
|
enabled
boolean
|
|
Enables or disables sflow sampling for the device.
|
|
interfaces
list
/ elements=dictionary
|
|
Configuration data for sflow data on interfaces.
|
|
|
enabled
boolean
|
|
If sflow is globally enabled, enables or disables sflow on the interface
|
|
|
name
string
/ required
|
|
Name of the interface
|
|
|
sampling_rate
integer
|
|
Override the global sampling rate for this interface
|
|
max_header_size
integer
|
|
sflow maximum header size in bytes.
must be in multiple of 128 bytes from 128 to 1024.
|
|
polling_interval
integer
|
|
sflow polling interval (in seconds).
must be 0 or in range 5-300
|
|
sampling_rate
integer
|
|
Sets global packet sampling rate.
Sample 1 packet for every sampling_rate number of packets flowing through the interface
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
|
Specifies the type of configuration update to be performed on the device.
|