Forum Discussion

rfc19's avatar
rfc19
Icon for Nimbostratus rankNimbostratus
Sep 04, 2012

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

 

1 Reply

  • rfc19's avatar
    rfc19
    Icon for Nimbostratus rankNimbostratus
    This has been sorted. The set_snat_automap needed the $name to be in an array():

     

     

    function set_snat($name, $server)

     

    {

     

    $client = getSoap('LocalLB.VirtualServer', "$server");

     

    $client->set_snat_automap(array($name));

     

    }