test_driver: Use virNetworkObjEndAPI
test_driver: Use virNetworkObjEndAPI

So far, this is pure code replacement. But once we introduce
reference counting to virNetworkObj this will be more handy as
there'll be only one function to change: virNetworkObjEndAPI().

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

fabianfreyer/libvirt,jfehlig/libvirt,crobinso/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,eskultety/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,libvirt/libvirt,agx/libvirt,nertpinx/libvirt,crobinso/libvirt,agx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,datto/libvirt,olafhering/libvirt,jfehlig/libvirt,datto/libvirt,rlaager/libvirt,andreabolognani/libvirt,nertpinx/libvirt,taget/libvirt,jardasgit/libvirt,jfehlig/libvirt,zippy2/libvirt,eskultety/libvirt,taget/libvirt,libvirt/libvirt,rlaager/libvirt,agx/libvirt,taget/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,taget/libvirt,olafhering/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,datto/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,eskultety/libvirt,rlaager/libvirt,VenkatDatta/libvirt,crobinso/libvirt,eskultety/libvirt,andreabolognani/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,rlaager/libvirt,agx/libvirt,zippy2/libvirt,eskultety/libvirt,taget/libvirt,datto/libvirt,andreabolognani/libvirt,datto/libvirt,agx/libvirt,VenkatDatta/libvirt,olafhering/libvirt,rlaager/libvirt,crobinso/libvirt