Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuel d'utilisateur Page 20

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 19
8 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
2
Example
OS_IP::flags
Description
Returns the flags set in the current packet.
Context
Called in context of TCP, UDP and HTTP context.
Usage
Used in performing load-balancing based on the flags.
Input Parameters
None.
Return Values
The following table contains the return values.
TABLE 4 Return Values
Name Type Description
string A string representing the flags
set in the current packet.
use OS_IP;
use OS_SLB;
use OS_HTTP_REQUEST;
#Event triggered on http request
sub HTTP_REQUEST{
#Retrieve protocol type
if(OS_IP::protocol eq 6){
OS_SLB::forward(3);
} else {
OS_SLB::forward(4);
}
}
Vue de la page 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 131 132

Commentaires sur ces manuels

Pas de commentaire