irule or policy to match url and then update pool members port
Good afternoon, looking for some assistance it modifying the following irule we are using. The problem with this irule is it has 100's of pools to send the url to on a differnt port on the server. The servers in hte pool are all the same 5 nodes so I want to instead see if I can use a Data Group to map the uri to the port then with the irule match the uri and update the destination port to this port where all the nodes would then be in 1 server pool instead of the 100's.
Any assistance would be greatly appreciated.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/testsprt/data/nop/wbse/search" { pool pool_test.domain.com_34561 }
"/testsprt/data/nop/companycodes" { pool pool_test.domain.com_34561 }
"/testsprt/data/timekeeper/unionmasterdata/contract" { pool pool_test.domain.com_34562 }
"/testsprt/data/timekeeper/unionmasterdata/jobcode" { pool pool_test.domain.com_34562 }
"/testsprt/data/nop/chartofaccounts/glaccount*" { pool pool_test.domain.com_34562 }
"/testsprt/data/timekeeper/timecard/gettimecard" { pool pool_test.domain.com_34563 }
"/testsprt/data/timekeeper/timecard/savetimecard" { pool pool_test.domain.com_34563 }
"/corpsystems/all/nop/cam/approvers/getapprovers" { pool pool_test.domain.com_34577 }
"/corpsystems/vroozi/nop/mm/purchaserequest/create" { pool pool_test.domain.com_34565 }
"/corpsystems/vroozi/nop/mm/purchasestatus/update" { pool pool_test.domain.com_34566 }
"/corpsystems/vroozi/nop/cam/approvers/getapprovers" { pool pool_test.domain.com_34567 }
"/corpsystems/vroozi/nop/cam/approvers/getapprovalhistory" { pool pool_test.domain.com_34567 }
"/corpsystems/vroozi/nop/mm/goodsreceipt/create" { pool pool_test.domain.com_34568 }
"/corpsystems/vroozi/nop/mm/newpurchaserequest/create" { pool pool_test.domain.com_34571 }
"/testsprt/data/registration/status" { pool pool_test.domain.com_34570 }