Brocade Virtual ADX OpenScript Programmer’s Guide (Support Manual do Utilizador Página 19

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 30
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 18
Brocade Virtual ADX OpenScript Programmer’s Guide 11
53-1003244-01
Sample scripts
2
Power-user script example
The following example is the “power-user” version of the script. It is much more compact with less
extensive notation.
Example 2:
# Power User version
# Performs server selection based on URI in
# HTTP Request Header
use OS_HTTP_Request;
use OS_SLB;
use strict;
use Sub::StrictDecl;
sub HTTP_REQUEST
{
# local variable with default server group-id
$server = 2;
if (OS_HTTP_REQUEST::url =~ m/"index.html"/)
$server = "RS1";
# $server can hold integer or string values.
# Xtension backend does translation.
OS_SLB::forward($server);
}
Vista de página 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 29 30

Comentários a estes Manuais

Sem comentários