Eldad_162351
Aug 10, 2014Nimbostratus
Solved
iApp to modify data-group
hello,
im trying to add a set of key and value from iApp to a data-group belonged to iRule. my iApp template:
section x { table y_table { string key string value } }
text { x "section x" x.y_table.key "Input1: " x.y_table.value "Input2: " }
also, i have an tmsh command which works through command line: tmsh modify ltm data-group internal my_datagroup records add {"key" {data "value"}}
now what im trying to do is to make the input from the iapp to modify the data-group
any help appriciated.
thanks ahead.
I led you astray. The following is corrected, and works if your data-group already exists. If it doesn't exist yet, use tmsh::create. It appears that the exec is not necessary.
foreach row $::x__y_table { array set columns [join $row] tmsh::modify ltm data-group internal /Common/my_datagroup records add \{ $columns(key) \{ data $columns(value) \}\} }