<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/clients/cli/nmcli-completion, branch lr/device-modify</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>cli/device: add modify command</title>
<updated>2016-06-29T18:28:42+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-22T16:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8b4494598d04b6754a69463a4dc7274fdff8763f'/>
<id>8b4494598d04b6754a69463a4dc7274fdff8763f</id>
<content type='text'>
It modifies the applied connection using the Reapply API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It modifies the applied connection using the Reapply API.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: option autocompletion should not match words without trailing '-'</title>
<updated>2016-06-28T10:12:39+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-28T10:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fdecb6b6691e176bbc1bcce3ccac6f08d800ed59'/>
<id>fdecb6b6691e176bbc1bcce3ccac6f08d800ed59</id>
<content type='text'>
This would fix for example:
nmcli e &lt;TAB&gt;
(e interpreted as --escape, would allow autocompletion to work... but
when the command is executed an error is reported)

Moreover, we will now have:
nmcli c &lt;TAB&gt;
autocompletion work correctly, i.e., c is correctly interpreted  as
"connection" instead of "--colors"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This would fix for example:
nmcli e &lt;TAB&gt;
(e interpreted as --escape, would allow autocompletion to work... but
when the command is executed an error is reported)

Moreover, we will now have:
nmcli c &lt;TAB&gt;
autocompletion work correctly, i.e., c is correctly interpreted  as
"connection" instead of "--colors"
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: autocompletion: add missing log level and domains</title>
<updated>2016-06-27T09:40:39+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2016-06-27T09:33:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=4c7f609d51decb9ea1c17992e96c4c2ab94c8ad1'/>
<id>4c7f609d51decb9ea1c17992e96c4c2ab94c8ad1</id>
<content type='text'>
Add KEEP level and DHCP, IP, AUDIT, SYSTEMD, VPN_PLUGIN domains.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add KEEP level and DHCP, IP, AUDIT, SYSTEMD, VPN_PLUGIN domains.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: manage autocompletion of "nmcli connection add" when no args are passed</title>
<updated>2016-06-23T15:35:08+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-23T12:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ea9dcd08faf1436d97fdec53518c46bfd088690e'/>
<id>ea9dcd08faf1436d97fdec53518c46bfd088690e</id>
<content type='text'>
This enables back "help" "--help" "-help" in autocompletion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This enables back "help" "--help" "-help" in autocompletion.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: use --complete-args for connection add completion</title>
<updated>2016-06-21T16:40:22+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-21T10:16:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8b39090597159dea52b5ffb760395ab593c7a3dc'/>
<id>8b39090597159dea52b5ffb760395ab593c7a3dc</id>
<content type='text'>
And make it incredibly slow at the same time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And make it incredibly slow at the same time.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: improve connection autocompletion (2/2)</title>
<updated>2016-06-21T14:28:48+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-15T11:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=3aff650e2219d45a9c353dfebe590a638a470727'/>
<id>3aff650e2219d45a9c353dfebe590a638a470727</id>
<content type='text'>
Complete the property as we parse the list of properties. This makes it
possible to actually complete an unfinished property.  E.g:

  $ nmcli --complete c modify enp0s25 +ipv6.addr
  +ipv6.addresses +ipv6.addr-gen-mode
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Complete the property as we parse the list of properties. This makes it
possible to actually complete an unfinished property.  E.g:

  $ nmcli --complete c modify enp0s25 +ipv6.addr
  +ipv6.addresses +ipv6.addr-gen-mode
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: enable connection autocompletion for 802.1x properties</title>
<updated>2016-06-21T14:28:48+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-13T16:59:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=cd4395a261d24f4aaca0e39783d2d25f642c27ac'/>
<id>cd4395a261d24f4aaca0e39783d2d25f642c27ac</id>
<content type='text'>
nmcli bash autocompletion leveraged on "nmcli connection edit", "print"
to retrieve the specific properties of a connection. Anyway, the
interactive editor is smart and just prints the used components, so in a
connection where 802.1x is not enabled we had no autocompletion.
Solved adding an "hidden" command "nmcli --complete connection modify"
as suggested in bgo #724860 in order to retrieve ALL the available
properties for use in autocompletion.
Here patch from L.Rintel has been merged to make che --complete option
global to nmcli (first version was local to "connection modify").

https://bugzilla.gnome.org/show_bug.cgi?id=724860
https://bugzilla.redhat.com/show_bug.cgi?id=1301226
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nmcli bash autocompletion leveraged on "nmcli connection edit", "print"
to retrieve the specific properties of a connection. Anyway, the
interactive editor is smart and just prints the used components, so in a
connection where 802.1x is not enabled we had no autocompletion.
Solved adding an "hidden" command "nmcli --complete connection modify"
as suggested in bgo #724860 in order to retrieve ALL the available
properties for use in autocompletion.
Here patch from L.Rintel has been merged to make che --complete option
global to nmcli (first version was local to "connection modify").

https://bugzilla.gnome.org/show_bug.cgi?id=724860
https://bugzilla.redhat.com/show_bug.cgi?id=1301226
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli autocompletion cleanups</title>
<updated>2016-06-21T14:28:39+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-10T12:48:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fbaaf51f52b690c6d8b4512854994731cbda8a6f'/>
<id>fbaaf51f52b690c6d8b4512854994731cbda8a6f</id>
<content type='text'>
* no need to check HELP_ONLY_AS_FIRST var as when --help option is passed
  _nmcli_compl_OPTIONS will return 0, falling in the general case that
  will trigger end of autocompletion

* clanup local var declaration in _nmcli func:
  - remove dupliated OPTIONS_MANDATORY declaration
  - init HELP_ONLY_AS_FIRST on declaration
  - order vars for common prefix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* no need to check HELP_ONLY_AS_FIRST var as when --help option is passed
  _nmcli_compl_OPTIONS will return 0, falling in the general case that
  will trigger end of autocompletion

* clanup local var declaration in _nmcli func:
  - remove dupliated OPTIONS_MANDATORY declaration
  - init HELP_ONLY_AS_FIRST on declaration
  - order vars for common prefix
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli-completion: complete filename for VPN import and passwd-file</title>
<updated>2016-05-19T10:52:59+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-05-19T07:40:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=09a015b23b38438bf0f803a03eb2a79caf76b178'/>
<id>09a015b23b38438bf0f803a03eb2a79caf76b178</id>
<content type='text'>
Also hard-code the VPN types strongswan and fortisslvpn.

https://bugzilla.redhat.com/show_bug.cgi?id=1337300
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also hard-code the VPN types strongswan and fortisslvpn.

https://bugzilla.redhat.com/show_bug.cgi?id=1337300
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: don't allow multiple &lt;ifname&gt; arguments to device-reapply</title>
<updated>2016-05-03T09:52:57+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-04-30T12:14:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=d742ea78178726ea22a7f112a26a461f33b95265'/>
<id>d742ea78178726ea22a7f112a26a461f33b95265</id>
<content type='text'>
Just like `nmcli device connect` only allows one argument, don't allow
multiple device arguments for reapply.

Allowing multiple device names makes it more complicated to add
additional options to the command. For example, it would be useful
to have a

    nmcli device reapply eth0 connection id other-connection

but when allowing multiple device names, it gets more complicated in
documentation, command line parsing and bash completion.

Note that the user can achieve a very similar outcome by using the
shell:

    for DEV in eth0 eth1 eth2; do
        nmcli device reapply $DEV &amp;
    done
    wait

argubaly, this doesn't report the exit status properly. To properly
handle that would require more effort. Also, it is somewhat less
efficient, but well.

This is an API change, however it is very new API that probably nobody
is using much. Also, the documentation (man nmcli) didn't mention the
possibility to pass multiple device names.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just like `nmcli device connect` only allows one argument, don't allow
multiple device arguments for reapply.

Allowing multiple device names makes it more complicated to add
additional options to the command. For example, it would be useful
to have a

    nmcli device reapply eth0 connection id other-connection

but when allowing multiple device names, it gets more complicated in
documentation, command line parsing and bash completion.

Note that the user can achieve a very similar outcome by using the
shell:

    for DEV in eth0 eth1 eth2; do
        nmcli device reapply $DEV &amp;
    done
    wait

argubaly, this doesn't report the exit status properly. To properly
handle that would require more effort. Also, it is somewhat less
efficient, but well.

This is an API change, however it is very new API that probably nobody
is using much. Also, the documentation (man nmcli) didn't mention the
possibility to pass multiple device names.
</pre>
</div>
</content>
</entry>
</feed>
