Brocade Virtual ADX OpenScript Programmer’s Guide (Support User Manual Page 19

  • Download
  • Add to my manuals
  • Print
  • Page
    / 30
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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);
}
Page view 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 29 30

Comments to this Manuals

No comments