Forum Discussion
Defining SNAT Pool to "Auto Map"
Hi all,
I am having trouble setting a Virtual Server to use Auto Map as its SNAT Pool. I am using PHP with the following function which I have sourced from the SDK:
function set_snat($name, $server)
{
$client = getSoap('LocalLB.VirtualServer', "$server");
$client->set_snat_automap($name);
}
PHP:
$server = 'x.x.x.x';
$name = ...
set_snat($name, $server);
The $server variable defines which F5 the configuration should be set on (we have a redundant pair of Viprion 2400s) while $name defines the VS name.
I have done some testing and no matter what format I pass the name into the function ( /Common/VS_Name, VS_Name, /Common/x.x.x.x, x.x.x.x ), there is still no result - as well as no error!
I cannot seem to find a solution to this and would greatly appreciate your help!
(The SOAP calls are correct as I have been using the same format for other [working] iControl calls)
Regards
- rfc19NimbostratusThis has been sorted. The set_snat_automap needed the $name to be in an array():
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com