def valid_network(name, conf)
      return if name.nil?

      conf[:networks].find { |net| net.name_eql? name }
    end
def valid_network(name, conf)
      return if name.nil?

      conf[:networks].find { |net| net.name_eql? name }
    end
Sanitizes a network name.

 @param name [String] the name of the network
 @param conf [Hash] the configuration containing all networks
 @return [Network, nil] the corresponding network or +nil+ on error