Removing the 'reject' keyword from a virtual, using TMSH / iApp
I have an iApp which creates a virtual server. Depending on one of my iApp choices, this is either configured as a normal load-balancing virtual server (displayed as "Standard" in the web GUI), or to reject all traffic (displayed as "Reject" in the web GUI)
However, I cannot seem to find a way to toggle the 'reject' value and turn it back into a normal virtual server.
For example, the current iApp template code contains:
set cmd "ltm virtual ${vname} destination ${ip}:${port}"
if {[iapp::is ::net__reject "yes"]} {
append cmd " reject"
}
iapp::conf create $cmd
If I create a new application based on this template and set the net.reject choice to no, it creates the virtual server without the reject keyword; if I then reconfigure and set the net.reject choice to yes it modifies the virtual server and adds the reject keyword; but if I reconfigure again and set the net.reject choice back to no it does not remove the reject keyword.
So how does one remove the reject keyword in my iApp (or in tmsh, for that matter)?