コード例 #1
0
ファイル: ui_node.py プロジェクト: xConnection/targetcli-fb
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.define_config_group_param(
         'global', 'export_backstore_name_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(
         'global', 'auto_add_mapped_luns', 'bool',
         'If true, automatically create node ACLs mapped LUNs ' +
         'after creating a new target LUN or a new node ACL')
     self.define_config_group_param(
         'global', 'auto_cd_after_create', 'bool',
         'If true, changes current path to newly created objects.')
     self.define_config_group_param(
         'global', 'auto_save_on_exit', 'bool',
         'If true, saves configuration on exit.')
     self.define_config_group_param(
         'global', 'auto_add_default_portal', 'bool',
         'If true, adds a portal listening on all IPs to new targets.')
     self.define_config_group_param(
         'global', 'max_backup_files', 'string',
         'Max no. of configurations to be backed up in /etc/target/backup/ directory.'
     )
     self.define_config_group_param(
         'global', 'auto_use_daemon', 'bool',
         'If true, commands will be sent to targetclid.')
コード例 #2
0
ファイル: ui_node.py プロジェクト: mykaul/ovirt4cli
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.define_config_group_param(
         'global', 'auto_cd_after_create', 'bool',
         'If true, changes current path to newly created objects.')
     self.define_config_group_param(
         'global', 'auto_save_on_exit', 'bool',
         'If true, saves configuration on exit.')
     self.define_config_group_param(
         'global', 'username', 'string',
         'Username to use to connect to oVirt Engine.')
     self._api = None
     self._ip = None
コード例 #3
0
ファイル: ui_node.py プロジェクト: Fubo1/targetcli-fb
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.define_config_group_param(
         'global', 'export_backstore_name_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(
         'global', 'auto_add_mapped_luns', 'bool',
         'If true, automatically create node ACLs mapped LUNs '
         + 'after creating a new target LUN or a new node ACL')
     self.define_config_group_param(
         'global', 'auto_cd_after_create', 'bool',
         'If true, changes current path to newly created objects.')
     self.define_config_group_param(
         'global', 'auto_save_on_exit', 'bool',
         'If true, saves configuration on exit.')
     self.define_config_group_param(
         'global', 'auto_add_default_portal', 'bool',
         'If true, adds a portal listening on all IPs to new targets.')
コード例 #4
0
ファイル: ui_node.py プロジェクト: pzakha/targetcli-fb-stage
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.define_config_group_param(
         'global', 'export_backstore_name_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(
         'global', 'auto_add_mapped_luns', 'bool',
         'If true, automatically create node ACLs mapped LUNs ' +
         'after creating a new target LUN or a new node ACL')
     self.define_config_group_param(
         'global', 'auto_cd_after_create', 'bool',
         'If true, changes current path to newly created objects.')
     self.define_config_group_param(
         'global', 'auto_save_on_exit', 'bool',
         'If true, saves configuration on exit.')
     self.define_config_group_param(
         'global', 'auto_add_default_portal', 'bool',
         'If true, adds a portal listening on all IPs to new targets.')
コード例 #5
0
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.logger = logging.getLogger('gwcli')
コード例 #6
0
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
コード例 #7
0
 def __init__(self, name, parent=None, shell=None):
     ConfigNode.__init__(self, name, parent, shell)
     self.http_mode = self.parent.http_mode
コード例 #8
0
 def __init__(self, shell, as_root=False):
     ConfigNode.__init__(self, '/', shell=shell)
     self.as_root = as_root