Commit b1dab45
[arp] Ignore intermittent failure of "ip neigh flush all" (#820)
In ARP testing, the script needs to run "ip neigh flush all" couple of
times to clean up ARP table. Occasionally flushing ARP table may fail
with error "*** Flush not complete bailing out after 10 rounds" on ptf32
or ptf64 topology.
The reason is that BGP peers are configured on these topologies although
the PTF container does not have BGP running. From time to time, DUT will
try to contact the BGP peers. ARP requests are firstly sent out. This
will create some INCOMPLETE entries in ARP table for the BGP peers. If
"ip neigh flush all" is executed at the same moment, the command may
fail with "*** Flush not complete bailing out after 10 rounds".
The fix is to simply ignore the error of "ip neigh flush all". Purpose
of the "ip neigh flush all" command is to cleanup ARP entries generated
by previous testing. It doesn't matter when there are ARP entries
generated by other activities not flushed.
Meanwhile, I changed the command to "ip -stats neigh flush all" to
have more detailed output for debug in case of failure.
Signed-off-by: Xin Wang <[email protected]>1 parent 78d53ea commit b1dab45
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | | - | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | | - | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | | - | |
| 188 | + | |
| 189 | + | |
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| |||
0 commit comments