What were you trying to do that didn't work?
Probe does not work w/o "-i" option.
Fix the error by adding END_OPTIONS to probe_options.
The issue was detected in our RHEL on AWS testing. I created a pr for fixing it, please review.
pr in upstream: https://github.com/xdp-project/xdp-tools/pull/518
$ sudo xdp-trafficgen probe -i ens5
Missing required option '--interface'
Usage: xdp-trafficgen [options]
Use --help (or -h) to see full option list.
What is the impact of this issue to you?
test-xdp-trafficgen.sh failed with below error.
[test_udp] FAIL Missing required option '--interface' Usage: xdp-trafficgen [options] <hostname> Use --help (or -h) to see full option list. Test test_udp exited with return code: 1 [test_tcp] FAIL Missing required option '--interface' Usage: xdp-trafficgen [options] <hostname> Use --help (or -h) to see full option list. Test test_tcp exited with return code: 1 [test_no_support] FAIL Missing required option '--interface' Usage: xdp-trafficgen [options] <hostname> Use --help (or -h) to see full option list. Test test_no_support exited with return code: 1
Please provide the package NVR for which the bug is seen:
xdp-tools-1.5.5-1.el10.aarch64
How reproducible is this bug?:
Steps to reproduce
- install xdp-tools
- "xdp-trafficgen probe -i ens5" or "xdp-trafficgen probe"
Expected results
probe command can work with or without "-i".
Actual results
probe command not work because of problem in options handling
- split to
-
RHEL-115324 xdp-trafficgen: probe command failed w/o "--interface"
-
- Closed
-
-
RHEL-115434 [QE work] xdp-trafficgen: probe command failed w/o "--interface"
-
- New
-