Forum Discussion
Neil_Marks_2466
Nimbostratus
Jun 27, 2018iapp::get_items -filter question...
I am looking to present in a dropdown list a selection of pools which end in either "_DC1" or "_DC2", but I can't get the syntax correct...
various formats I have tried..
return [iapp::get_items ...
candc
Cirrus
Sep 04, 2018[12] is probably being interpreted by TCL as command. Instead, perhaps your pattern should be a string literal, e.g. {_DC[12]$}.
Otherwise, have you tried not using the
-filter argument, but instead filtering with TCL's lsearch -regexp -inline?
Depends on whether F5's TCL is up-to-date, but maybe:
choice dc_pools {
[lsearch -regexp -all -inline [iapp::get_items ltm pool] {_DC[12]$}]
}
- Neil_MarksSep 05, 2018
Nimbostratus
Tried both approaches above and both fail... the lsearch one needed a tcl before the 1st {.. but it still failed as it effectively tried to execute a command name called the pools which where matched... without the tcl, the import of the template failed due to invalid characters "[" and a bunch of others... :-(
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
