aboutgitcodebugslistschat
path: root/hooks/pre-push
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2022-10-20 11:04:19 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-10-21 11:43:45 +0200
commitb944ca185587cd3199f33010706a6c216d15cb66 (patch)
treedeb9a5951f0bdb33a9551a9134aebd96b2e36b89 /hooks/pre-push
parentc6845f60a062b69d1d4e64db1b6d0f1b6ac75d43 (diff)
downloadpasst-b944ca185587cd3199f33010706a6c216d15cb66.tar
passt-b944ca185587cd3199f33010706a6c216d15cb66.tar.gz
passt-b944ca185587cd3199f33010706a6c216d15cb66.tar.bz2
passt-b944ca185587cd3199f33010706a6c216d15cb66.tar.lz
passt-b944ca185587cd3199f33010706a6c216d15cb66.tar.xz
passt-b944ca185587cd3199f33010706a6c216d15cb66.tar.zst
passt-b944ca185587cd3199f33010706a6c216d15cb66.zip
qrap: Support JSON syntax for -device
Starting with version 8.1.0, libvirt uses JSON syntax when generating the arguments to -device, so they will now look like {"driver":"virtio-scsi-pci","bus":"pci.3","addr":"0x0"} instead of virtio-scsi-pci,bus=pci.3,addr=0x0 qrap needs to parse these arguments and extract the bus number in order to figure out what address to use for the virtio-net device it adds, and the libvirt change described above has broken this parsing logic. Tweak the code so that both styles are accepted and handled correctly. Note that, when JSON is in use, qrap needs to generate its own command line options in that format as well or things will not work as expected. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'hooks/pre-push')
0 files changed, 0 insertions, 0 deletions