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.')
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
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.')
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.')
def __init__(self, name, parent=None, shell=None): ConfigNode.__init__(self, name, parent, shell) self.logger = logging.getLogger('gwcli')
def __init__(self, name, parent=None, shell=None): ConfigNode.__init__(self, name, parent, shell)
def __init__(self, name, parent=None, shell=None): ConfigNode.__init__(self, name, parent, shell) self.http_mode = self.parent.http_mode
def __init__(self, shell, as_root=False): ConfigNode.__init__(self, '/', shell=shell) self.as_root = as_root