Forum Discussion
Help with Irules
I do apologize but can you reword this as I am having a difficult time understanding what it is you're trying to convey. Hopefully I can assist you after the rewording.
- alchemy0576Jul 30, 2024Nimbostratus
Hi Paulius,
I'll try to be more clear.
We've 2 pools with 2servers on each.
Pool A and Poll B by exmeple. When pool A is down all traffic is redirected towards Pool B, and inversely.
We use a API on each server to sent their status to F5. GET /toolkitapi/getfostatus HTTP/1.0\r\n\r\n
Basicaly return of APi is <fostatus>Master</fostatus> or <fostatus>Slave</fostatus>.
That ran fine with this pattern <fostatus>(Master|Slave)</fostatus> configured into the F5.
But, our supplier has updated our servers and with the same API the return is different now.
Return of API: {"fostatus":"Master"} or {"fostatus":"Slave"}.
When our IT team has tried to change the pattern into F5 with {"fostatus":"Master|Slave"} instead of <fostatus>(Master|Slave)</fostatus>.
Impossible to validate the new pattern on F5 each time a error is displayed on F5 GUI.
By exemple, we've tried those combination into F5:
{"fostatus":"Master|Slave"}
{"fostatus":"Slave"}{"fostatus":"Master"}
{"fostatus":"Slave"}|{"fostatus":"Master"}
"{\"fostatus\":\"Slave\"}|"{\"fostatus\":\"Master\"}
But unfortunately, we've always a syntax error from F5.
One more time, isn't my part of job, don't know F5. I just relate what I see on F5 GUI and my understanding.
Your help is really apreciate.
Kind Regards,
Michaël
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com