Forum Discussion
rnorberg
Feb 11, 2012Nimbostratus
class match confusion...
im having an issue getting my hands around this irule:
set pooluri ""
set pooluri [class match -name $originaluri starts_with pool-list]
if {$pooluri eq ""} {
set po...
nitass
Feb 12, 2012Employee
e.g.
[root@ve1023:Active] config b class pool-list list
class pool-list {
{
"string1" { "value1" }
"string2" { "value2" }
"string3" { "value3" }
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
log local0. "\[class get pool-list\]: [class get pool-list]"
log local0. "\[class match -- string2 equals pool-list\]: [class match -- string1 equals pool-list]"
log local0. "\[class match -- string2 equals pool-list\]: [class match -name string2 equals pool-list]"
log local0. "\[class match -- string2 equals pool-list\]: [class match -value string2 equals pool-list]"
}
}
[root@ve1023:Active] config tail -f /var/log/ltm
Feb 11 21:56:09 local/ve1023 err mcpd[3746]: 01020066:3: The requested rule (myrule) already exists in partition Common.
Feb 11 21:56:10 local/tmm info tmm[4822]: Rule myrule : [class get pool-list]: {string1 value1} {string2 value2} {string3 value3}
Feb 11 21:56:10 local/tmm info tmm[4822]: Rule myrule : [class match -- string2 equals pool-list]: 1
Feb 11 21:56:10 local/tmm info tmm[4822]: Rule myrule : [class match -- string2 equals pool-list]: string2
Feb 11 21:56:10 local/tmm info tmm[4822]: Rule myrule : [class match -- string2 equals pool-list]: value2
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects