[libvirt] [PATCH 13/27] conf: add APIs to convert virDomainNetDef to virNetworkPortDef