TSRemapNextHopStrategyFind

Synopsis

#include <ts/ts.h>
TSStrategy TSRemapNextHopStrategyFind(const char *name)

Description

Gets a pointer to the specified name NextHopSelectionStrategy. This may be nullptr, indicating that no strategy exists with the given name or that the call was made outside of remap rule initialization (e.g. from a globally loaded plugin).

This function may ONLY be called during TSRemapNewInstance. A call made outside of remap rule initialization is logged to diags.log at most once per proxy.config.log.throttling_interval_msec.

Note

name must not be nullptr; passing nullptr is a plugin API violation and triggers an assertion.

Note

This returned pointer must not be freed and the contents must not be changed. Strategy pointers held by plugins become invalid when ATS configs are reloaded and must be re-obtained during TSRemapNewInstance()

See Also

TSRemapNextHopStrategySet()