-
Notifications
You must be signed in to change notification settings - 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
Open
natali-rs1985
wants to merge
1
commit into
vyos:current
Choose a base branch
from
natali-rs1985:T7938
base: current
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
👍 |
1 task
zdc
requested changes
Oct 21, 2025
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
|
sever-sever
approved these changes
Oct 22, 2025
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
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: