Commit 9c9aaed
committed
net, libs: add poll_tcp_connectivity helper
A NAD reference change triggers a live migration. During and immediately
after the migration, ARP/NDP tables are rebuilding and the interface is
reconfiguring on the new VLAN, so network reachability does not appear
(or disappear) instantaneously. A one-shot TCP check after the patch
would produce false negatives on the new VLAN and false positives on the
old one.
poll_tcp_connectivity() wraps iperf3 in a @Retry loop so the test waits
until the expected reachability state is actually observed. It also
accepts client_bind_dev and server_bind_dev to force iperf3 traffic
through specific interfaces, bypassing ECMP when both secondaries share
the same subnet.
Signed-off-by: Asia Khromov <azhivovk@redhat.com>
Assisted-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 37a21c1 commit 9c9aaed
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments