This format works in v10.0.1 as well. But does it make the entry as name/value pairs so it it easy to lookup value based on the key?
I just tested it. It doesn’t. The whole line is treat as the name of the element. I have to parse it.
It sounds like the below format should be valid for internal calls in v10.0.1, according to the class wiki page. I wonder why it couldn’t pass the verify command
is the way that the GUI adds in the key/value pairs when you create the DG via the GUI itself. That verifies on my vLTM. I don’t see why it wouldn’t validate on yours. Are you sure the error is in the class itself and not before it?
This rule works with the original format I posted above. The idea of the rule is to redirect based on a lookup of the original HTTP::host header value. For example,
when HTTP_REQUEST {
set Host [findclass [HTTP::host] dc-post " "]
log local0. "Host var is $Host"
if { $Host ne "" } {
HTTP::redirect http://$Host[HTTP::uri]
}
}
I think qqdixf5 is using 10.0.x which might handle class -name and class -value differently than 10.1.x. I think in order to use class -name/-value in 10.0.x, you’d need to use the := format in an external datagroup.