[libvirt] [PATCH v2 17/36] conf: add APIs to convert virDomainNetDef to virNetworkPortDef