Os_slb:: persist($method, $string), Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 108: Context, Usage, Input parameters

96
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
7
Return Values
The following table contains the return values.
Example
OS_SLB:: persist($method, $string)
Causes the system to select a real server based on the persist method specified by $method and
$string.
Context
This function can be called from an HTTP request event.
Usage
Can be used to persist based on the specified method.
Input Parameters
The following table contains the input values.
TABLE 118
Return Values
Name
Type
Description
integer
1 is returned if the server
connection is SSL. Otherwise 0
is returned.
TABLE 119
Input Values
Name
Type
Description
$method
method
One of the following values for
the persist methods:
•
Hash-to-bucket
•
Hash-to-group-id
•
Group-or-server-id
•
Server-name
•
Server-alias-name
•
Passive-persist
$string
string
The real server name.
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST {
if(OS_SLB::is_server_ssl == 1)
{
print "The server connection is SSL\n";
}
}