From 297149f768af6efd81ba7758a4dc185c6b9f826a Mon Sep 17 00:00:00 2001 From: Tregaron Bayly Date: Thu, 7 Feb 2013 10:20:06 -0700 Subject: 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 --- targetcli/ui_node.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'targetcli/ui_node.py') 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 @@ -27,6 +27,9 @@ class UINode(ConfigNode): def __init__(self, name, parent=None, shell=None): 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.') -- cgit v1.2.1