Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuale Utente Pagina 21

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 132
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 20
Brocade Virtual ADX OpenScript API Guide 9
53-1003243-01
Methods
2
Example
OS_IP::tos
Description
Returns the type of service flag set in the current packet.
Context
Called in context of TCP, UDP and HTTP.
Usage
Used in performing load-balancing based on the TOS flag.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 5 Return Values
Name Type Description
string Type of service flag of current
packet.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
#Event triggered on http request
sub HTTP_REQUEST{
#Reset according to some flags
if(OS_IP::flags eq 34 ){
OS_SLB::reset_client;
} else {
OS_SLB::forward(4);
}
}
Vedere la pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 131 132

Commenti su questo manuale

Nessun commento