summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-07 19:54:33 +0200
committerChristian Breunig <christian@breunig.cc>2026-10-31 10:51:12 +0100
commit28e8e014642653c730eeda678547c3a821b9962f (patch)
tree786e1258204010278787d30cc7bae255a33b6981 /scripts
parente59bf8035d0c824919ba0b0feca5549eead8b7af (diff)
downloadvyos-build-28e8e014642653c730eeda678547c3a821b9962f.tar.gz
vyos-build-28e8e014642653c730eeda678547c3a821b9962f.zip
Testsuite: T3871: pin the test NICs to fixed PCI slots
The slots the NICs land in decide the order names are handed out in, so they must not move when a device is added or removed from the commandline. Pin them, and leave gaps between the groups so a card can later be plugged into a slot which sits between those already in use.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 7e03623e..6c592841 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -316,10 +316,10 @@ def get_qemu_cmd(name, enable_uefi, disk_img, raid=None, iso_img=None, tpm=False
-netdev user,id=n1 -device virtio-net-pci,netdev=n1,mac={macbase}:01,romfile="",bus=pci.0,addr=0x5,host_mtu=1500 \
-netdev user,id=n2 -device virtio-net-pci,netdev=n2,mac={macbase}:02,romfile="",bus=pci.0,addr=0x6,host_mtu=1500 \
-netdev user,id=n3 -device virtio-net-pci,netdev=n3,mac={macbase}:03,romfile="",bus=pci.0,addr=0x7,host_mtu=1500 \
- -netdev user,id=n4 -device e1000e,netdev=n4,mac={macbase}:04,romfile="",bus=pci.0,addr=0x8 \
- -netdev user,id=n5 -device e1000e,netdev=n5,mac={macbase}:05,romfile="",bus=pci.0,addr=0x9 \
- -netdev user,id=n6 -device vmxnet3,netdev=n6,mac={macbase}:06,romfile="",bus=pci.0,addr=0xa \
- -netdev user,id=n7 -device vmxnet3,netdev=n7,mac={macbase}:07,romfile="",bus=pci.0,addr=0xb \
+ -netdev user,id=n4 -device e1000e,netdev=n4,mac={macbase}:04,romfile="",bus=pci.0,addr=0xa \
+ -netdev user,id=n5 -device e1000e,netdev=n5,mac={macbase}:05,romfile="",bus=pci.0,addr=0xb \
+ -netdev user,id=n6 -device vmxnet3,netdev=n6,mac={macbase}:06,romfile="",bus=pci.0,addr=0xe \
+ -netdev user,id=n7 -device vmxnet3,netdev=n7,mac={macbase}:07,romfile="",bus=pci.0,addr=0xf \
-device virtio-scsi-pci,id=scsi0 \
{cdrom}{nested_cdrom} \
-drive format={disk_format},file={disk_img},if=none,media=disk,id=drive-hd1,readonly=off \