Forum Discussion
Datagroup content listing to a html page with an iRule
Hi,
I was wondering if anyone has an idea why my datagroup content listing page made with an iRule broke when customers services were moved from a big ip platform running version 11.6.1 to 12.1.2 HF1. The setup was moved from /common to a customer specific /customer1 partition. Could this have any impact why this is not working? Should there be some pointer to the partition?
Here is the iRule with namings modified:
when HTTP_REQUEST {
if { ([IP::client_addr] equals "1.2.3.4" ) and ([HTTP::uri] starts_with "/lista/") } {
set listaurl [string range [HTTP::uri] 7 end]
set lista customer1_$listaurl
if { [class exists $lista] } {
set response "Customer 1 datagroup list - [clock format [clock seconds]]
"
set response "$response [class names $lista]"
set response "$response
"
HTTP::respond 200 content $response "Content-Type" "text/html"
}
else {
set response "Customer 1 datagroup list - [clock format [clock seconds]]
"
set response "Non existent datagroup name"
set response "$response
"
HTTP::respond 200 content $response "Content-Type" "text/html"
}
}
}
Any help is greatly appreciated!
BR
Teemu
- Kevin_Davies
Nacreous
All data groups in the common partition can just be referred to by their name. The F5 assumes /Common when you don't specify it. Any other partition you must include the full name. If your partition was called PartA then your data group in that partition will be /PartA/data_group_name. In your code where you set lista, you need to add the partition name in front of the value
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com