[libvirt] [PATCH v4 10/29] conf: add APIs to convert virDomainNetDef to virNetworkPortDef