libvirt/resource_libvirt_network_test: reuse getNetworkDef
libvirt/resource_libvirt_network_test: reuse getNetworkDef

This just simplifies and reuses some code in a helper function.

dmacvicar/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt