summaryrefslogtreecommitdiff
path: root/rtsadmin/ui_node.py
Commit message (Collapse)AuthorAgeFilesLines
* Changed name to targetcli at community request.Jerome Martin2011-09-201-200/+0
|
* Moved saveconfig to /, added hostname reminder.Jerome Martin2011-07-191-13/+0
| | | | | | | * Reminder is useful for remote access. * Moving to root node makes it clear that the whole config is saved, not just the current node or subtree. * Removes command clutter from nodes.
* Removed temporary debug hidden cmds _sh and _cfs.Jerome Martin2011-07-181-8/+0
| | | | | | * Were not even proper UI commands (just hardcoded test cases) * Now useless as that part has been debugged * Shell access can be dangerous using remote access.
* Converted to refactored ConfigShell/Node layout.Jerome Martin2011-07-181-20/+20
| | | | | | | * Now using console, log, prefs through shell. * Root node binds to shell, not the other way. * Replaced del_child() calls by remove_child() * Replaced a children loop scan by ConfigNode get_child() method.
* Using config params wrappers, not direct access.Jerome Martin2011-06-081-38/+24
|
* Now using configshell new ui_type style.Jerome Martin2011-06-081-6/+6
| | | | * Instead of using directly ui_type_* methods, use the type name.
* Missed 'writable' flag to some globals params.Jerome Martin2011-06-081-4/+8
|
* Merged UIAttributes/UIParameters to UIRTSLibNode.Jerome Martin2011-06-041-50/+46
| | | | | | | | * As a result all UIRTSLibNode have the capabilities to use attributes and parameters. * Added a couple of checks to actually enable the feature only if the underlying rtslib node has attributes/parameters. * Added the writable flag to the Attributes/Parameters.
* Added auto_cd_after_create global.Jerome Martin2011-06-011-15/+35
| | | | | * Automatically cd's to newly created object after a 'create' command if true. * Added autosave (always) of last created node's path under @last bookmark.
* Code cleanup: unused imports, indents, unused vars.Jerome Martin2011-06-011-1/+1
|
* Fixed regression in 1d55a9f (catch RTSLibNotInCFS)Jerome Martin2011-05-311-4/+0
| | | | | | | * An abusive catch of RTSLibNotInCFS in execute_command was retrying the command endlessly, which is bad on general principle but even worse when the RTSLibNotInCFS is legit and should get through (i.e. trying to delete a non-existent MappedLUN would result in and endless loop).
* Switched to 1:1 hba:storage view.Jerome Martin2011-05-311-0/+8
| | | | | | | | | * Added 'legacy_hba_view' global boolean to select legacy view if needed. * Added root refresh when setting a global parameter. * All backstore plugins now part of the backstores/ tree * Only one storage object by backstore. * We now hide indiviual backstores. As they are mapped 1:1 with storage objects, both levels are collapsed.
* Fixed missing space in help text.Jerome Martin2011-05-271-1/+1
|
* Better handling of non-existing configfs objects.Jerome Martin2011-05-261-9/+39
| | | | | | | | | | | * If rtslib/configfs objects have been deleted under us, catch the (new) RTSLibNotInCFS exception and refresh before executing the command. * All UI objects attached to a configfs/rtslib node now check that they still exist before executing a command. If not, display an error, refresh the tree and go back to root (i.e. after doing '../ delete object' while in /parent/object). Done via a new class UIRTSLibNode. * Refactored a bit UIRTSLibNode to use self.rtsnode instead of self.lun, self.tpg, etc.
* Added auto_add_mapped_luns global.Jerome Martin2011-05-261-0/+4
| | | | | | | | * Also added add_mapped_luns parameter to both 'luns/ create' and 'acls/ create', both boolean and defaulting to auto_add_mapped_luns. * When true, that parameter automatically add mapped LUNs, either for all existing TPG LUNs (acls/ create) or to all existing ACLs (luns/ create).
* Global 'auto_enable_tpg' type is now bool.Jerome Martin2011-05-131-2/+2
| | | | | * Reflects configshell-side conversion of ui_type_onoff to ui_type_bool, using true|false instead of on|off values.
* Disable privileged commands if user is not root.Jerome Martin2011-05-111-1/+14
|
* initial rtsadmin commit1.99Nicholas Bellinger2011-05-041-0/+164
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>