Ben_Efrati
May 04, 2023Nimbostratus
iRule table usage in FLOW_INIT event
Hi,
According to https://clouddocs.f5.com/api/irules/table.html
table command is valid for all events except RULE_INIT
Valid Events:
ALL, except RULE_INIT
I'm trying to use table command in FLOW_INIT event but always get empty value, while at CLIENT_ACCEPTED event the table return non empty value.
when FLOW_INIT {
set srcip [IP::client_addr]
set test_ip [table lookup -subtable "blacklist" $srcip]
log local0. "$srcip , table value: $test_ip"
}
log is "192.0.0.1 , table value: "
while same code in CLIENT_ACCEPTED event
when CLIENT_ACCEPTED{
set srcip [IP::client_addr]
set test_ip [table lookup -subtable "blacklist" $srcip]
log local0. "$srcip , table value: $test_ip"
}
log is "192.0.0.1 , table value: block"
Thanks