beautypg.com

Os _slb:: drop, Os _slb:: forward($server), Description – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 114: Context, Input parameters, Return values, Example, Usage

background image

102

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

7

OS _SLB:: drop

Description

Causes the system to drop a UDP packet.

Context

This function can be called from UDP events.

Input Parameters

None.

Return Values

None.

Example

OS _SLB:: forward($server)

Description

Causes the system to send a request to a server specified by $server_id or $group_id. If use
$group_id here.

OS_SLB::forward can be used in most of the events, like OS_HTTP_REQUEST and
OS_HTTP_RESPONSE.

However, in some events combinations, there are restrictions.

Context

This function can be called from the client events.

Usage

Server load balancing method.

use OS_SLB;

use OS_UDP;

sub UDP_CLIENT_DATA{

OS_SLB::drop;

}