Iapp does not find irule located in the same iapp directory
Hi. I have an application service located in the path /test/test-api-ws-read-master.app/test-api-ws-read-master and an irule created in the same path /test/test-api-ws-read-master.app/test-api-ws-read-master. But when the iapp is modified to include the irule, it doesn´t find it.
The iapp code that adds the irule is: tmsh::create / ltm virtual $object_name destination $listen_on pool $object_name profiles replace-all-with {$http_profile tcp} source-address-translation {type snat pool $snat_pool} rules {$irule}
When I call the Management.ApplicationService.modify() from iControl, I get this error: Exception caught in Management::urn:iControl:Management/ApplicationService::modify() Exception: Common::OperationFailed primary_error_code : 21954567 (0x014F0007) secondary_error_code : 0 error_string : 01070341:3: Virtual server /test/test-api-ws-read-master.app/test-api-ws-read-master references rule /test/test-api-ws-read-master.app/test-api-ws-read-master which does not exist.
But the irule already exists. I can add the irule to the virtual server manually and it works.
Can you help me? Thanks a lot.
Regards. Javier Iseruk