Forum Discussion
Hi Dario,
I created the IRULE but when assigning to a VS I am getting the following error:
: Unable to find virtual_server ((test_target_vs)) referenced at line 5: [virtual (test_target_vs)]
the test_target_vs definitely exists on LTM and here is my IRULE:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/*" }
{
log local0. "internally routing from [virtual name] to (test_target_vs)"
virtual (test_target_vs)
}}
Avoid using "(" ")". Use this instead:
virtual test_target_vs
Btw, if the VS is located in a different partition than /Common, you need to reference that partition.
virtual /my_partition/my_vs
- QasimJul 12, 2022Cirrostratus
Tried that too - unfortunately same error. also, there only a single partition.
is there any pre-requisite for the virtual to work? i.e. something I need to enable/disable perhaps?
- Jul 12, 2022
Are you using characters different than letters and numbers?
Try with this:
virtual /Common/{my_vs_name}
Note that you have to use curly brackets and replace "my_vs_name" with the exact name of the VS.
Also, take into account that iApps are built under folders
/Common/iApp_folder/my_vs
- QasimJul 12, 2022Cirrostratus
thanks mate, really appreciate it. It has finally accepted the IRULE but the target VS is still not seeing any traffic.
I can see trafic on the VS with this IRULE and I can IRULE is getting hits too.