def find_network!(name)
      network = find_network(name)
      return network unless network.nil?

      raise CommandError, "a network with the name #{name.inspect} " \
                          'does not exist'
    end
def find_network!(name)
      network = find_network(name)
      return network unless network.nil?

      raise CommandError, "a network with the name #{name.inspect} " \
                          'does not exist'
    end
Finds a network given its name.

 @param name [String] the name to search for
 @raise [CommandError] if no network with the given name exists
 @return [Network] the network