[libvirt] [PATCH 2/6] nodedev: change if-else if in update_caps to switch