summaryrefslogtreecommitdiff
path: root/targetcli/ui_node.py
diff options
context:
space:
mode:
authorTregaron Bayly <tbayly@bluehost.com>2013-02-07 10:20:06 -0700
committerTregaron Bayly <tbayly@bluehost.com>2013-02-07 10:20:06 -0700
commit297149f768af6efd81ba7758a4dc185c6b9f826a (patch)
treedf6326eb31e36804419c1eb48c491be81ca26268 /targetcli/ui_node.py
parentbe97ed30fb9e50f2ece5d2275354ca15b3ba11ee (diff)
downloadtargetcli-297149f768af6efd81ba7758a4dc185c6b9f826a.tar.gz
Add feature support for emulate_model_alias
New method ui_set_model_alias in UIBackstore class is invoked in the ui_command_create method of each subclass. The method either sets the attribute successfully or raises an informational error. The storage object is created either way. Signed-off-by: Tregaron Bayly <tbayly@bluehost.com>
Diffstat (limited to 'targetcli/ui_node.py')
-rw-r--r--targetcli/ui_node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/targetcli/ui_node.py b/targetcli/ui_node.py
index 5f1a53e..a5cd4b2 100644
--- a/targetcli/ui_node.py
+++ b/targetcli/ui_node.py
@@ -28,6 +28,9 @@ class UINode(ConfigNode):
ConfigNode.__init__(self, name, parent, shell)
self.cfs_cwd = RTSRoot.configfs_dir
self.define_config_group_param(
+ 'global', 'export_backstore_as_model', 'bool',
+ 'If true, the backstore name is used for the scsi inquiry model name.')
+ self.define_config_group_param(
'global', 'auto_enable_tpgt', 'bool',
'If true, automatically enables TPGTs upon creation.')
self.define_config_group_param(