-
Couldn't load subscription status.
- Fork 391
T7938: VPP: Rewrite sFlow implementation #4796
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
Conversation
|
👍 |
Execute commands for vpp sflow with API calls. Use values for polling interval and sampling rate from 'system sflow'. Add op-mode command
|
CI integration ❌ failed! Details
|
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.
Works as expected in my tests:
set system sflow agent-address '192.168.122.14'
set system sflow interface 'eth0'
set system sflow sampling-rate '1'
set system sflow server 10.0.0.2
set system sflow vpp
set vpp settings interface eth0 driver 'dpdk'
set vpp settings unix poll-sleep-usec '222'
set vpp sflow header-bytes '160'
set vpp sflow interface 'eth0'
vyos@r14:~$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=8.99 ms
sFlow server:
vyos@r16# sudo goflow2 | jq
time=2025-10-22T12:49:36.286Z level=INFO msg="starting GoFlow2"
time=2025-10-22T12:49:36.286Z level=INFO msg="starting collection" scheme=sflow hostname="" port=6343 count=1 workers=2 blocking=false queue_size=1000000
time=2025-10-22T12:49:36.288Z level=INFO msg="starting collection" scheme=netflow hostname="" port=2055 count=1 workers=2 blocking=false queue_size=1000000
{
"type": "SFLOW_5",
"time_received_ns": 1761137381262240800,
"sequence_num": 217,
"sampling_rate": 1,
"sampler_address": "192.168.122.14",
"time_flow_start_ns": 1761137381262240800,
"time_flow_end_ns": 1761137381262240800,
"bytes": 102,
"packets": 1,
"src_addr": "192.168.122.14",
"dst_addr": "1.1.1.1",
"etype": "IPv4",
"proto": "ICMP",
"src_port": 0,
"dst_port": 0,
"in_if": 1073741823,
"out_if": 26,
"src_mac": "52:54:00:8d:67:6e",
"dst_mac": "52:54:00:d4:d9:a1",
"src_vlan": 0,
"dst_vlan": 0,
"vlan_id": 0,
"ip_tos": 0,
"forwarding_status": 0,
"ip_ttl": 64,
"ip_flags": 2,
"tcp_flags": 0,
"icmp_type": 0,
"icmp_code": 0,
"ipv6_flow_label": 0,
"fragment_id": 28036,
"fragment_offset": 0,
"src_as": 0,
"dst_as": 0,
"next_hop": "",
"next_hop_as": 0,
"src_net": "0.0.0.0/0",
"dst_net": "0.0.0.0/0",
"bgp_next_hop": "",
"bgp_communities": [],
"as_path": [],
"mpls_ttl": [],
"mpls_label": [],
"mpls_ip": [],
"observation_domain_id": 0,
"observation_point_id": 0,
"layer_stack": [
"Ethernet",
"IPv4",
"ICMP"
],
"layer_size": [
14,
20,
8
],
"ipv6_routing_header_addresses": [],
"ipv6_routing_header_seg_left": 0
}
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.
Now the logic seems to be OK.
Execute commands for vpp sflow with API calls. Use values for polling and sampling rate from 'system sflow'.
Add op mode command
show vpp sflowChange summary
Types of changes
Related Task(s)
Related PR(s)
vyos/vyos-documentation#1694
How to test / Smoketest result
Checklist: