Adding get_network function to the network.rb

- Adding the function because we need to compare if the network already exist to use it, instead of try to create a network every time.

Change-Id: Icd9e046040691b47611cc86b60f34e2418e626d6