mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Testsuite: T861: use proper base MAC address from RFC7042
Commit 085df7615a ("Testsuite: T861: always use 2 VCPUs") also altered the base
MAC address used by QEMU to a locally administered one. Something that looked
"right" in the beginning turned out to break the smoketest platform.
The reason is the locally administered bit is evaluated in [1] and if set and
not on the exclusion list (as it was a Realtek base MAC address before), the
interface in question is not considered persistent and thus not added to the
configuration file upon system startup.
1: 825743b6bc/src/helpers/vyos-interface-rescan.py (L73-L74)
This commit is contained in:
parent
72c2a011d7
commit
bf01c00d04
@ -155,7 +155,8 @@ def get_qemu_cmd(name, enable_uefi, disk_img, raid=None, iso_img=None, tpm=False
|
|||||||
f' -device ahci,id=achi0' \
|
f' -device ahci,id=achi0' \
|
||||||
f' -device ide-cd,bus=achi0.0,drive=drive-cd1,id=cd1,bootindex=10'
|
f' -device ide-cd,bus=achi0.0,drive=drive-cd1,id=cd1,bootindex=10'
|
||||||
|
|
||||||
macbase = '02:00:00:00:00'
|
# RFC7042 section 2.1.2 MAC addresses used for documentation
|
||||||
|
macbase = '00:00:5E:00:53'
|
||||||
cmd = f'qemu-system-x86_64 \
|
cmd = f'qemu-system-x86_64 \
|
||||||
-name "{name}" \
|
-name "{name}" \
|
||||||
-smp 2,sockets=1,cores=2,threads=1 \
|
-smp 2,sockets=1,cores=2,threads=1 \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user