Commit 351a4ff
tests: Fix multiple dhcp tests related issues.
- Ensure that dhcpd is started before sending traffic (potential flaky
tests).
- Fix total_pkts=$(cat pkt.pcap | wc -l) which did not count number of
packets as using tcpdump -vv.
- Modify NETNS_START_DHCPD to also support ipv4.
- Use created dhcpd.leases file (some tests created it but did not use it).
- Have dhclient related folder in /tmp to avoid writing permission issue.
- Check dhclient pid still exists before trying to kill it when exiting,
to avoid confusing kill errors.
Fixes: dce4abf ("northd, tests: DHCP Relay Agent support for overlay IPv4 subnets.")
Fixes: f9ffb0e ("controller: ACL correctly handles fragmented traffic.")
Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Signed-off-by: Ales Musil <amusil@redhat.com>
(cherry picked from commit e52a475)1 parent ac165c2 commit 351a4ff
2 files changed
Lines changed: 36 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
181 | 190 | | |
182 | 191 | | |
183 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12704 | 12704 | | |
12705 | 12705 | | |
12706 | 12706 | | |
| 12707 | + | |
12707 | 12708 | | |
12708 | 12709 | | |
12709 | 12710 | | |
| |||
12723 | 12724 | | |
12724 | 12725 | | |
12725 | 12726 | | |
12726 | | - | |
| 12727 | + | |
12727 | 12728 | | |
12728 | 12729 | | |
12729 | 12730 | | |
12730 | | - | |
12731 | | - | |
12732 | | - | |
12733 | | - | |
| 12731 | + | |
12734 | 12732 | | |
12735 | | - | |
12736 | | - | |
12737 | | - | |
12738 | | - | |
12739 | | - | |
12740 | | - | |
12741 | | - | |
12742 | | - | |
12743 | | - | |
| 12733 | + | |
| 12734 | + | |
12744 | 12735 | | |
12745 | 12736 | | |
12746 | | - | |
| 12737 | + | |
12747 | 12738 | | |
12748 | 12739 | | |
12749 | 12740 | | |
12750 | | - | |
12751 | | - | |
| 12741 | + | |
| 12742 | + | |
12752 | 12743 | | |
12753 | 12744 | | |
12754 | 12745 | | |
| |||
21276 | 21267 | | |
21277 | 21268 | | |
21278 | 21269 | | |
21279 | | - | |
| 21270 | + | |
| 21271 | + | |
21280 | 21272 | | |
21281 | 21273 | | |
21282 | 21274 | | |
| |||
21289 | 21281 | | |
21290 | 21282 | | |
21291 | 21283 | | |
21292 | | - | |
21293 | | - | |
21294 | | - | |
21295 | | - | |
21296 | | - | |
21297 | 21284 | | |
21298 | | - | |
21299 | | - | |
21300 | | - | |
21301 | | - | |
| 21285 | + | |
21302 | 21286 | | |
21303 | 21287 | | |
21304 | | - | |
| 21288 | + | |
21305 | 21289 | | |
21306 | | - | |
| 21290 | + | |
21307 | 21291 | | |
21308 | 21292 | | |
21309 | 21293 | | |
| |||
0 commit comments