In sanity-lnet test_218 we want to drop all traffic from "nid1" to
itself. Use the --source argument to lnetctl ping command to ensure
that the ping is not sent from nid2 to nid1.
HPE-bug-id: LUS-11275
Test-Parameters: trivial
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Ib82f182e1da5af303d4763d090d868196eb0ad70
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48891
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
$LCTL net_drop_add -s $nid1 -d $nid1 -e local_error -r 1
- do_lnetctl ping $nid1 &&
+ do_lnetctl ping --source $nid1 $nid1 &&
error "ping should have failed"
local health_recovered