Skip to main content

Cflowd Definition

The example below shows definition of cflowd policy definition.

Diagram

Classes

data_policy (sdwan.centralized_policies.definitions)

NameTypeConstraintMandatoryDefault Value
cflowdList[cflowd]No

cflowd (sdwan.centralized_policies.definitions.data_policy)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[A-Za-z0-9\-_]{1,127}$Yes
descriptionStringYes
active_flow_timeoutIntegermin: 30, max: 3600No
inactive_flow_timeoutIntegermin: 1, max: 3600No
sampling_intervalIntegermin: 1, max: 65536No
flow_refreshIntegermin: 60, max: 86400No
protocolChoiceipv4, ipv6, bothNoipv4
tosBooleantrue, falseNofalse
remarked_dscpBooleantrue, falseNofalse
collectorsList[collectors]No

collectors (sdwan.centralized_policies.definitions.data_policy.cflowd)

NameTypeConstraintMandatoryDefault Value
vpnIntegermin: 0, max: 65527Yes
ip_addressIPYes
portIntegermin: 1024, max: 65535Yes
transportChoicetransport_tcp, transport_udpYes
source_interfaceStringYes
export_spreadingChoiceenable, disableNo

Examples

Example-1: In the below example , cflows policy has been defined to use timeouts for active,inactive flows in seconds.The sampling rate has been set to 30 seconds and flow refresh to 60seconds. There are two collectors defined one in each of service vpn 112 and 101 respectively.For each of the collector , IP address , port number and source_interface has been defined.

sdwan:
centralized_policies:
definitions:
data_policy:
cflowd:
- name: CFLOW_DEFINITION_TEST2
description: CFLOW_DEFINITION_TEST2
active_flow_timeout: 30
inactive_flow_timeout: 3600
sampling_interval: 30
flow_refresh: 60
protocol: ipv4
tos: true
remarked_dscp: true
collectors:
- vpn: 112
ip_address: 173.36.118.129
port: 2048
transport: transport_udp
source_interface: GigabitEthernet0
export_spreading: enable
- vpn: 101
ip_address: 173.36.118.130
port: 2048
transport: transport_udp
source_interface: GigabitEthernet1
export_spreading: enable