APM set network access resource variable from iRule
I am trying to set network access resources variables relating to split tunneling via an iRule. Is this possible and if so can you explain how to achieve?
I have set network access resource variables in VPE by adding a variable assignment like:
config.connectivity_resource_network_access..split_tunneling = expr { 0 }
(and I am aware of how the value
0
gets actually set as"0"
).
When I try to set this via an iRule like:
ACCESS::session data set config.connectivity_resource_network_access..split_tunneling "0"
the config variable is not set, and I don't achieve no split tunneling. I have verified that the iRule is actually executed. I have tried setting in an iRule event (ACCESS_POLICY_AGENT_EVENT) and also in ACCESS_POLICY_COMPLETED, just in case.
The reason why I want to do this is because I have lots of network access resources and don't want to have to make a separate no-split tunnel versions of them. When you set in VPE using a variable assign you have to specify the exact network resource to change. Instead I wanted to get the assigned network access resource from session.assigned.resources.na, and then set the split tunnelling-related variables for the assigned resource.
Thank you!
Evan