Forum Discussion

Richard_Kim_270's avatar
Richard_Kim_270
Icon for Nimbostratus rankNimbostratus
Aug 08, 2006

HTTP redirect

Hello, I am trying to use Data Groups to so I can append strings or URI's. However, whenever I try to create one I get a error on line 1:

 

 

line 1: [undefined procedure: class] [class]

 

 

 

 

Here is the iRule I am trying to use:

 

class reportstrings {

 

"reports/reports1.aspx"

 

"reports/reports2.aspx"

 

"admin/reports3.aspx"

 

"admin/reports4.aspx"

 

"reports/reportoutput"

 

}

 

 

when HTTP_REQUEST {

 

if { [matchclass [HTTP::uri] contains $::reportstrings] } {

 

pool RP_pool_1

 

 

}

 

 

}

 

2 Replies

  • The class statement is not defined in the iRule itself but as a separate entity (on the Data Groups tab in the GUI or a separate statement within bigip.conf). The syntax you have there is what ends up in bigip.conf when those entries are made in the GUI.

     

     

    Denny