libvirt: make mdev types name attribute be optional
Some GPU drivers like i915 don't provide a name attribute for mdev types.
As we don't use this attribute yet, let's just make sure we support the fact
it's optional.
Change-Id: Ia745ed7095c74e2bfba38379e623a3f81e7799eb
Closes-Bug: #1896741
(cherry picked from commit 416cd1ab18180fc09b915f4517aca03651f01eea)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /754401 /opendev. org/openstack/ nova/commit/ b87ced4a8d71790 05e1db3d6b3e02a 297285c734
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit b87ced4a8d71790 05e1db3d6b3e02a 297285c734
Author: Sylvain Bauza <email address hidden>
Date: Wed Sep 23 12:52:52 2020 +0200
libvirt: make mdev types name attribute be optional
Some GPU drivers like i915 don't provide a name attribute for mdev types.
As we don't use this attribute yet, let's just make sure we support the fact
it's optional.
Change-Id: Ia745ed7095c74e 2bfba38379e623a 3f81e7799eb 09b915f4517aca0 3651f01eea)
Closes-Bug: #1896741
(cherry picked from commit 416cd1ab18180fc