aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPim van Pelt <pim@ipng.nl>2025-01-25 12:49:20 +0100
committerDave Wallace <dwallacelf@gmail.com>2025-01-30 18:49:54 +0000
commitb68c1f26137692278ed7d335fd0e217a30331b99 (patch)
tree5499323af6746eeda43303f7878ce0b222a1d9c9 /test
parent82cd81ade65e0e29f8e1a908c0b92aa0d6895aaf (diff)
sflow: replace VAPI with DLAPI
Remove the requirement to coordinate between linux-cp and sflow at build time via cmake. Also, remove 350 lines of awkward thread-forking VAPI code. Replace it with a dynamically retrieved function from the linux-cp plugin, called lcp_itf_pair_get_vif_index_by_phy(). Remove build inhibit based on Netlink headers, and only inhibit the build for FreeBSD. This plugin can now run regardless of Linux CP being built or loaded, and then return VPP ifIndex numbers instead. Also, fix a flaky test where non-ephemeral source ports throw off packet captures. Type: improvement Change-Id: I5486742fa0e343e382630a22672a05fe3dcf7836 Signed-off-by: neil.mckee@inmon.com Signed-off-by: pim@ipng.nl (cherry picked from commit f1467f6be578088586abad1cc2c96038d8247794)
Diffstat (limited to 'test')
-rw-r--r--test/test_sflow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_sflow.py b/test/test_sflow.py
index d16c0e6a804..d37ed84f252 100644
--- a/test/test_sflow.py
+++ b/test/test_sflow.py
@@ -108,7 +108,7 @@ class SFlowTestCase(VppTestCase):
p = (
Ether(dst=src_if.local_mac, src=src_if.remote_mac)
/ IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4)
- / UDP(sport=randint(1000, 2000), dport=5678)
+ / UDP(sport=randint(49152, 65535), dport=5678)
/ Raw(payload)
)
# store a copy of the packet in the packet info