[libvirt] [PATCH] conf: utility function to update entry in def->nets array