Forum Discussion
Leslie_South_55
Nimbostratus
Sep 20, 2007Use iControl to manage an external class file
I have the need to use the HTTP::redirect function to handle the request for over 5000 + URL's. I am planning to use an external class file to store the redirects. The client has the requirement to manage these redirects "at will" via a simple user interface. My questions are as follows:
1) Can I use iControl to manage an external class file to provide a GUI to add, delete, or modify redirects?
2) How will my 6400 dual proc box respond having to read through a 5000+ line redirects file?
Many thanks, in advance.
-L
1) Can I use iControl to manage an external class file to provide a GUI to add, delete, or modify redirects?
http://devcentral.f5.com/wiki/default.aspx/iControl/InitializeRule.html Click here
2) How will my 6400 dual proc box respond having to read through a 5000+ line redirects file?
- Patrick_Chang_7Historic F5 Accountwould it be possible to construct the data group in such a way that it could be used as a TCL associative array within the iRule? This would make the performance hit grow roughly linearly with the size of the data group.
- Brian_Thompson
Nimbostratus
Joe- do you have any examples of iRules using external classes for data? - Using an external class from within an iRule is no different than using a "internal" class. You can use the findclass or matchclass methods to do lookups in those data groups. The only real difference is that external data groups are stored in files on the file system. They are mainly used for very large lists (ie, blacklist looksups) where management from the GUI's listboxes would be unusable.
- Brian_Thompson
Nimbostratus
I was looking for ways to update/insert/add to a class that is external - Oh, gotcha... There are no API methods to add/remove content from external files. You have to treat them like single files and upload and download them with the System.ConfigSync.upload_file() and download_file() methods and edit the contents on your client machine.
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