Forum Discussion
candc
Cirrus
[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_Marks
Sep 05, 2018Nimbostratus
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... :-(