Commit 2cd3ec5
authored
virtual_network/ethernet: select interface more reliably (#6556)
Previously, the code used `interface_base.get_vm_iface` to select what
ever that function determined to be the first guest interface inside the
guest. However, this selection could fail leading to a mismatch in MTU
values in test cases that have two interfaces on the VM.
Instead, use `utils_net_get_linux_iface_info` to select the interface
more reliably via the mac that's given by the previously obtained
interface information from the VM XML. This assures that the vm
interface corresponds to the selected domain xml element.
Assisted-by: Cursor/Claude-4-Sonnet
Signed-off-by: Sebastian Mitterle <[email protected]>1 parent ae482a9 commit 2cd3ec5
File tree
1 file changed
+3
-3
lines changed- libvirt/tests/src/virtual_network/connectivity
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | | - | |
| 177 | + | |
| 178 | + | |
180 | 179 | | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments