refra_151287
Jan 12, 2016Cirrus
Error during apply iRule
we face the following error when we apply the below irule, is there any suggestions to solve this error.
the error:
01070151:3: Rule [/Common/SBP-iRule] error: /Common/SBP-iRule:7: error: [parse error: extra characters after close-brace][then {
set check_request [getfield [HTTP::payload] "," 3];
set static::request_key [getfield $check_request ";" 1];
log local0. "priority 10 response $static::request_key"
}]
the iRule
when HTTP_RESPONSE priority 10 {
if {
(([HTTP::status] == "200" ) and
([HTTP::header value "Content-Length"] < "200") and
([HTTP::payload] contains "REQUEST_ID" ))
}then {
set check_request [getfield [HTTP::payload] "," 3]
set static::request_key [getfield $check_request ";" 1]
log local0. "priority 10 response $static::request_key"
}
}
Note: I see this error at all F5 versions except version 12?