Forum Discussion
david_20522
Nimbostratus
Jun 03, 2009class command please explain??
The wiki definition states:
The new class command, implemented in v10.0.0, allows for the use of extended functionality built into external data groups. These commands work for both internal an...
I tried testing this before, but didn't get anything back for the value using -value. If this should work for standard (non-external) classes, I'm not sure I'm configuring the class correctly. I've tried a few ways:
class name_value_class {
{
"\"name1\" := \"value1\""
"\"name2\" := \"value2\""
"\"name3\" := \"value3\""
"name4 := value4"
"\"name5 := value5\""
}
}
when RULE_INIT {
for {set i 0} {$i < [class size name_value_class]} {incr i} {
log local0. "[class element -name $i name_value_class] -> [class element -value $i name_value_class]"
}
}
And the log output:
: "name1" := "value1" ->
: "name2" := "value2" ->
: "name3" := "value3" ->
: name4 := value4 ->
: "name5 := value5" ->
Aaron
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