VS → Policies → Datascript → HTTP Request Event.
If the request URI ends with LoginDay.path
And the Referer header also ends with 5LoginDay.path → Redirect traffic to XFF Pool
Else → Redirect traffic to the Default Pool
Sample Datascript:
if path:sub(-string.len("LoginDay.path")) == "LoginDay.path" then
if referer:sub(-string.len("5LoginDay.path")) == "5LoginDay.path" then
avi.http.add_header("X-Debug", "REQ: LoginDay.path + Referer 5LoginDay.path → pool XFF")
avi.pool.select("XFF")
return
else
avi.http.add_header("X-Debug", "REQ: LoginDay.path + other Referer → pool Default")
avi.pool.select("Default")
return
end
end