<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/targetcli.git/targetcli/ui_node.py, branch master</title>
<subtitle>github.com: agrover/targetcli-fb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/'/>
<entry>
<title>daemonized-mode: add interactive shell support</title>
<updated>2020-04-06T17:51:30+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2020-04-03T07:31:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=b60c74594abf6cf681ff8eaa348059c5348399e9'/>
<id>b60c74594abf6cf681ff8eaa348059c5348399e9</id>
<content type='text'>
set interactive mode as default to make it appear similar to cli approach,

$ targetcli
targetcli shell version 2.1.51
Entering targetcli interactive mode for daemonized approach.
Type 'exit' to quit.

/&gt; pwd
/
/&gt; cd /iscsi
/&gt; pwd
/iscsi
/&gt; exit

Here we introduce a new global option daemon_use_batch_mode for switching between
batch and interactive modes.

$ targetcli set global daemon_use_batch_mode=true
Parameter daemon_use_batch_mode is now 'true'.

$ targetcli
targetcli shell version 2.1.51
Entering targetcli batch mode for daemonized approach.
Enter multiple commands separated by newline and type 'exit' to run them
all in one go.

/&gt; pwd
/&gt; cd /iscsi
/&gt; pwd
/
/iscsi

Fixes: #160
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
set interactive mode as default to make it appear similar to cli approach,

$ targetcli
targetcli shell version 2.1.51
Entering targetcli interactive mode for daemonized approach.
Type 'exit' to quit.

/&gt; pwd
/
/&gt; cd /iscsi
/&gt; pwd
/iscsi
/&gt; exit

Here we introduce a new global option daemon_use_batch_mode for switching between
batch and interactive modes.

$ targetcli set global daemon_use_batch_mode=true
Parameter daemon_use_batch_mode is now 'true'.

$ targetcli
targetcli shell version 2.1.51
Entering targetcli batch mode for daemonized approach.
Enter multiple commands separated by newline and type 'exit' to run them
all in one go.

/&gt; pwd
/&gt; cd /iscsi
/&gt; pwd
/
/iscsi

Fixes: #160
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove Epydoc markup from command messages</title>
<updated>2019-08-01T20:12:00+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2019-08-01T20:12:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=7fd26260bd0ea277085a1a9a316b3ea0e3383a56'/>
<id>7fd26260bd0ea277085a1a9a316b3ea0e3383a56</id>
<content type='text'>
Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>targetcli: way to enable targetclid as default choice</title>
<updated>2019-06-11T09:48:11+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2019-04-11T09:42:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=797778eeb2997d34af7fd3760195f7f8d08470f4'/>
<id>797778eeb2997d34af7fd3760195f7f8d08470f4</id>
<content type='text'>
$ targetcli set global
GLOBAL CONFIG GROUP
[...]
  auto_use_daemon=bool
    If true, commands will be sent to targetclid.
[...]

$ targetcli set global auto_use_daemon=True
Parameter auto_use_daemon is now 'true'.

Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
$ targetcli set global
GLOBAL CONFIG GROUP
[...]
  auto_use_daemon=bool
    If true, commands will be sent to targetclid.
[...]

$ targetcli set global auto_use_daemon=True
Parameter auto_use_daemon is now 'true'.

Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backup: global option to tune max no. of backup conf files</title>
<updated>2017-12-20T07:28:06+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-12-15T11:53:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=bf75323d7d678f01c21d0c9825bd55553727e934'/>
<id>bf75323d7d678f01c21d0c9825bd55553727e934</id>
<content type='text'>
Eg:
/&gt; set global max_backup_files=1000
Parameter max_backup_files is now '1000'.

If 'max_backup_files' is set in /etc/target/targetcli.conf, then max value
between conf file setting and global option settings is considered.

Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Eg:
/&gt; set global max_backup_files=1000
Parameter max_backup_files is now '1000'.

If 'max_backup_files' is set in /etc/target/targetcli.conf, then max value
between conf file setting and global option settings is considered.

Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the "unused import" warnings reported by Pylint</title>
<updated>2015-06-05T08:24:10+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2015-06-04T15:18:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=1ac9afbab554dee3a3b3638f9b24a4ac479e8bfa'/>
<id>1ac9afbab554dee3a3b3638f9b24a4ac479e8bfa</id>
<content type='text'>
Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix usage of an undefined variable caused by a typo</title>
<updated>2015-06-05T08:24:10+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2015-06-04T15:03:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=eee7a7bdcee1f60d4215329d4e36544fdb73f7a6'/>
<id>eee7a7bdcee1f60d4215329d4e36544fdb73f7a6</id>
<content type='text'>
This patch fixes the following error reported by Pylint:

  E:119,23: Undefined variable 'enum_type' (undefined-variable)

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the following error reported by Pylint:

  E:119,23: Undefined variable 'enum_type' (undefined-variable)

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Support Python 3 with "six" instead of running `2to3`</title>
<updated>2015-06-03T11:39:31+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2015-06-02T15:55:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=464fbb23689744daafa1872a285e5a1e4221f922'/>
<id>464fbb23689744daafa1872a285e5a1e4221f922</id>
<content type='text'>
 * Replace dict.iteritems() with six.iteritems(dict)
 * Use six.moves.range() to get xrange() on Python 2 and range() on
   Python 3
 * Add classifiers to setup.py
 * Sort imports

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 * Replace dict.iteritems() with six.iteritems(dict)
 * Use six.moves.range() to get xrange() on Python 2 and range() on
   Python 3
 * Add classifiers to setup.py
 * Sort imports

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>self.cfs_cwd is unused</title>
<updated>2015-02-03T01:24:33+00:00</updated>
<author>
<name>Andy Grover</name>
<email>agrover@redhat.com</email>
</author>
<published>2015-02-03T01:24:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=59d7575d83645b8576cbdb89f52a2e557c5e35a9'/>
<id>59d7575d83645b8576cbdb89f52a2e557c5e35a9</id>
<content type='text'>
At least grep finds no use of it. So let's remove it.

Signed-off-by: Andy Grover &lt;agrover@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least grep finds no use of it. So let's remove it.

Signed-off-by: Andy Grover &lt;agrover@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Document target parameters and attributes</title>
<updated>2015-01-12T08:53:20+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2015-01-09T20:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=1f3a182a166eace0865afeece11bbe77e81e3f31'/>
<id>1f3a182a166eace0865afeece11bbe77e81e3f31</id>
<content type='text'>
Parameters read from the config file system have the same generic
description that does not provide much information:

  &gt; get parameter
  MaxBurstLength=262144
  ---------------------
  The MaxBurstLength parameter.

This patch provides a description for parameters and attributes by
adding 'ui_desc_parameters' and 'ui_desc_attributes' class members to
the UITPG, UINodeACL and UIStorageObject classes.

The description is read when the parameter is registered with
define_config_group_param(). It is displayed when the user invokes
`get parameter` or `get attribute`:

  &gt; get parameter
  MaxBurstLength=262144
  ---------------------
  Maximum SCSI data payload in bytes in a Data-In or a solicited Data-Out iSCSI sequence.

This patch also declares the types of parameters. Thus, targetcli can
more efficiently check the parameters when they are set.

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parameters read from the config file system have the same generic
description that does not provide much information:

  &gt; get parameter
  MaxBurstLength=262144
  ---------------------
  The MaxBurstLength parameter.

This patch provides a description for parameters and attributes by
adding 'ui_desc_parameters' and 'ui_desc_attributes' class members to
the UITPG, UINodeACL and UIStorageObject classes.

The description is read when the parameter is registered with
define_config_group_param(). It is displayed when the user invokes
`get parameter` or `get attribute`:

  &gt; get parameter
  MaxBurstLength=262144
  ---------------------
  Maximum SCSI data payload in bytes in a Data-In or a solicited Data-Out iSCSI sequence.

This patch also declares the types of parameters. Thus, targetcli can
more efficiently check the parameters when they are set.

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add UI parameter type helper for "Yes" and "No" boolean values</title>
<updated>2015-01-09T20:21:22+00:00</updated>
<author>
<name>Christophe Vu-Brugier</name>
<email>cvubrugier@fastmail.fm</email>
</author>
<published>2015-01-09T20:07:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=08882e7b260cf53cbb7acf4bed70f82aad300b8c'/>
<id>08882e7b260cf53cbb7acf4bed70f82aad300b8c</id>
<content type='text'>
The iSCSI RFC defines boolean values as "Yes" and "No" and the LIO
iSCSI target follows this convention to store boolean iSCSI session
parameters (e.g. ImmediateData=Yes). So it makes sense to have a
dedicated helper to validate them in targetcli.

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The iSCSI RFC defines boolean values as "Yes" and "No" and the LIO
iSCSI target follows this convention to store boolean iSCSI session
parameters (e.g. ImmediateData=Yes). So it makes sense to have a
dedicated helper to validate them in targetcli.

Signed-off-by: Christophe Vu-Brugier &lt;cvubrugier@fastmail.fm&gt;
</pre>
</div>
</content>
</entry>
</feed>
