Forum Discussion
Irule editor question
I haven't done much with folders in a while but I think you can either call the System.Session.set_active_folder() method with a path to default to (ie. /my/folder/path) and then create the object with a single name (myirule), or pass in the full path to the created object (/my/folder/path/myirule).
For the editor, I would likely just add a new extension to the File.Partition menu which
1) queries the Management.Folder.get_list() method for all available folders 2) Add an option to "create" a folder that then prompts for a path and then calls the Management.Folder.create() method. 3) When user selects a folder (much like the partition), it calls the System.Session.set_active_folder().
It will likely require some refreshes of the tree view when things are selected or changed.
Or you could wait until I get to the next update in the next few months or so...
-Joe
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