def sort_available_networks(available_networks)
      available_networks.sort_by { |nwrk| nwrk.network.address.split(".").map(&:to_i) }
    end
def sort_available_networks(available_networks)
      available_networks.sort_by { |nwrk| nwrk.network.address.split(".").map(&:to_i) }
    end
sort available networks pool in ascending order based on the network's
 IP address to allocate the network for the new subnet to be added in the
 existing virtual network