Forum Discussion
Edit internal datagroup via iRule
Hi,
First of all, thanks to this community for so many articles. I'm trying to edit a string internal datagroup via iRule as it can be done via cli with the commands:
tmsh modify ltm data-group internal auth_keys records add { myUserName { data someString } }
also I need to delete some entries:
tmsh modify ltm data-group internal auth_keys records delete { myUserName }
As far as I could reach is to perform a lookup in my iRule:
set ga_key [class lookup $username $static::ga_key_dg]
Where $static::ga_key_dg is the name of the datagroup, $username the string I'm using in the lookup and ga_key the returned value.
Any idea how can a datagroup be edited?
Best Regards,
I finally figured it out in the LAB. I followed the steps of the previous link but instead a pool I used an iRule to use the localhost IP:
when CLIENT_ACCEPTED { node 127.0.0.1 443 }
- The_BhattmanNimbostratus
There might be way by using iCALL called from an iRule - but there are some caveats.
This links should get you started https://devcentral.f5.com/questions/execute-icall-from-irule-43549
I hope this helps
-=Bhattman=-
- Roberto_GB_2613Altostratus
I finally figured it out in the LAB. I followed the steps of the previous link but instead a pool I used an iRule to use the localhost IP:
when CLIENT_ACCEPTED { node 127.0.0.1 443 }
Recent Discussions
Related Content
* 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