summaryrefslogtreecommitdiff
path: root/clients/cli/nmcli-completion
Commit message (Collapse)AuthorAgeFilesLines
* cli: make nmcli do its own command completionlr/completion-3Lubomir Rintel2017-02-131-1240/+57
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=777328
* cli: completion: escape shell special characters "()&!"Beniamino Galvani2016-10-261-1/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772629
* cli/device: add modify commandlr/device-modifyLubomir Rintel2016-06-291-1/+9
| | | | It modifies the applied connection using the Reapply API.
* cli: option autocompletion should not match words without trailing '-'Francesco Giudici2016-06-281-0/+2
| | | | | | | | | | | | This would fix for example: nmcli e <TAB> (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 <TAB> autocompletion work correctly, i.e., c is correctly interpreted as "connection" instead of "--colors"
* cli: autocompletion: add missing log level and domainsBeniamino Galvani2016-06-271-2/+2
| | | | Add KEEP level and DHCP, IP, AUDIT, SYSTEMD, VPN_PLUGIN domains.
* nmcli: manage autocompletion of "nmcli connection add" when no args are passedFrancesco Giudici2016-06-231-2/+6
| | | | This enables back "help" "--help" "-help" in autocompletion.
* cli: use --complete-args for connection add completionlr/connection-addLubomir Rintel2016-06-211-234/+2
| | | | And make it incredibly slow at the same time.
* nmcli: improve connection autocompletion (2/2)Lubomir Rintel2016-06-211-16/+4
| | | | | | | | 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
* nmcli: enable connection autocompletion for 802.1x propertiesFrancesco Giudici2016-06-211-3/+8
| | | | | | | | | | | | | | | 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
* nmcli autocompletion cleanupsFrancesco Giudici2016-06-211-15/+11
| | | | | | | | | | | * 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
* nmcli-completion: complete filename for VPN import and passwd-fileThomas Haller2016-05-191-4/+9
| | | | | | Also hard-code the VPN types strongswan and fortisslvpn. https://bugzilla.redhat.com/show_bug.cgi?id=1337300
* cli: don't allow multiple <ifname> arguments to device-reapplyThomas Haller2016-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 & 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.
* cli: remove version check against NMFrancesco Giudici2016-04-281-4/+1
| | | | | | | | | | | | When performing NM package upgrade the new version of nmcli will be immediately available while NM daemon will not, as it would not restart in order to avoid to disrupt connectivity. This could create issues with tools leveraging on nmcli output (till reboot). As apart from this case it is very unlikely that a user can have this nmcli / NM daemon version mismatch situation, the check could cause more harm than benefit in real user case scenarios. https://bugzilla.redhat.com/show_bug.cgi?id=1291785
* cli: prefer 'modify' over 'monitor' when the command is abbreviatedBeniamino Galvani2016-03-101-1/+1
| | | | | | | | | | | In previous releases 'nmcli connection m' was interpreted as 'modify', but recently the monitor command was introduced with a higher priority, changing the behavior when the abbreviated form is used. Restore the old behavior. https://bugzilla.redhat.com/show_bug.cgi?id=1316120
* cli: add nmcli d reapplyLubomir Rintel2016-01-101-1/+2
| | | | Client support for O.FD.NM.Device.Reapply().
* cli: (bash completion): add new settings to completion of '--fields'Jiří Klimeš2015-12-171-1/+1
|
* cli: add bash completion for arguments of tun, ip-tunnel, macvlan, vxlanJiří Klimeš2015-12-171-1/+34
| | | | for 'nmcli connection add type ...'
* cli: add vxlan supportBeniamino Galvani2015-12-091-1/+1
|
* cli: add macvlan supportBeniamino Galvani2015-12-091-1/+1
|
* cli: add global --show-secrets optionJiří Klimeš2015-12-071-9/+8
| | | | | | - it controls echoing passwords input on terminal - it replaces --show-secrets in 'nmcli connection show', which is deprecated now - it replaces --show-password in 'nmcli device wifi hotspot', which is deprecated now
* cli: add 'nmcli connection export' (rh #1034105)Jiří Klimeš2015-12-071-1/+27
| | | | | | | | | Synopsis: nmcli connection export [ id | uuid | path] <ID> [<output file>] for exporting VPN connections. https://bugzilla.redhat.com/show_bug.cgi?id=1034105
* cli: add 'nmcli connection import' (rh #1034105)Jiří Klimeš2015-12-071-3/+44
| | | | | | | | | Synopsis: nmcli connection import [--temporary] type <type> file <file to import> Only VPN configurations can be imported at the moment. https://bugzilla.redhat.com/show_bug.cgi?id=1034105
* cli,devices: add device monitorLubomir Rintel2015-12-051-5/+9
|
* cli: add support for IP tunnel settingsBeniamino Galvani2015-12-011-1/+1
|
* nmcli/bash-completion: add completion for 'tun' connection modeBeniamino Galvani2015-11-251-1/+1
|
* cli: add 'nmcli connection clone' for cloning connections (bgo #757627)Jiří Klimeš2015-11-181-1/+29
| | | | | | | | | | | | | | | | Synopsis: nmcli connection clone [--temporary] [id|uuid|path] <ID> <new name> It copies the <ID> connection as <new name>. The command is very useful if there is a connection, but another one is needed for a related configuration. One can copy the existing profile and modify it for the new situation. For example: $ nmcli con clone main-eth second-eth $ nmcli con modify second-eth connection.interface-name em4 https://bugzilla.gnome.org/show_bug.cgi?id=757627
* nmcli/bash-completion: fix --show-password parsingLubomir Rintel2015-11-121-1/+1
| | | | Fixes: 2f52a10be12a9b04d802bd6d5040ead71aa7434d
* cli: add command for displaying LLDP neighborsBeniamino Galvani2015-11-101-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | The list of LLDP neighbors is available through the D-Bus interface and libnm already provides functions to retrieve it; make the list available through nmcli as well. Sample output: $ nmcli device lldp NEIGHBOR[0].DEVICE: eth0 NEIGHBOR[0].CHASSIS-ID: 00:13:21:58:CA:42 NEIGHBOR[0].PORT-ID: 1 NEIGHBOR[0].PORT-DESCRIPTION: 1 NEIGHBOR[0].SYSTEM-NAME: ProCurve Switch 2600-8-PWR NEIGHBOR[0].SYSTEM-DESCRIPTION: ProCurve J8762A Switch 2600-8-PWR, revision H.08.89 NEIGHBOR[0].SYSTEM-CAPABILITIES: 20 (mac-bridge,router) NEIGHBOR[1].DEVICE: eth2 NEIGHBOR[1].CHASSIS-ID: 00:01:30:F8:AD:A2 NEIGHBOR[1].PORT-ID: 1/1 NEIGHBOR[1].PORT-DESCRIPTION: Summit300-48-Port 1001 NEIGHBOR[1].SYSTEM-NAME: Summit300-48 NEIGHBOR[1].SYSTEM-DESCRIPTION: Summit300-48 - Version 7.4e.1 (Build 5) NEIGHBOR[1].SYSTEM-CAPABILITIES: 20 (mac-bridge,router) https://bugzilla.gnome.org/show_bug.cgi?id=757307
* cli: add '--show-password' option for 'nmcli device wifi hotspot'Jiří Klimeš2015-11-101-1/+2
| | | | | | It is useful to show nmcli-generated hotspot password (if a user does not provide his own password). Without the option the user would have to look into the generated profile in order to find out the password.
* cli: add 'password' option for 'nmcli device wifi hotspot'Jiří Klimeš2015-11-101-1/+1
| | | | | It allows user provided password to be used to secure the hotspot. Otherwise, nmcli will generate a suitable password.
* cli: add 'nmcli device wifi hotspot' commandJiří Klimeš2015-11-101-1/+12
| | | | | | Synopsis: nmcli device wifi hotspot [ifname <ifname>] [con-name <name>] [ssid <SSID>] [band a|bg] [channel <channel>]
* nmcli: fix bash completion of words containing colon (rh #1271271)Jiří Klimeš2015-10-201-0/+14
| | | | | | | | | | | | | | | Test: $ sudo ip link add a:b:c type dummy $ nmcli device delete<Tab><Tab> $ nmcli device delete a<Tab> See also: http://stackoverflow.com/questions/28479216/how-to-give-correct-suggestions-to-tab-complete-when-my-words-contains-colons http://stackoverflow.com/questions/2805412/bash-completion-for-maven-escapes-colon/12495727 Related: https://bugzilla.gnome.org/show_bug.cgi?id=745157 https://bugzilla.redhat.com/show_bug.cgi?id=1271271
* nmcli/bash-completion: fix completion for device names for `nmcli device set`Thomas Haller2015-09-211-1/+1
| | | | Fixes: 7405d5c7b742fd429d6d4815a416c35f363752bd
* cli: allow creating ADSL connections with 'nmcli connection add' (rh #1264089)Jiří Klimeš2015-09-211-1/+18
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1264089
* nmcli: extend `nmcli device set` command to accept explicit ifname specifierThomas Haller2015-09-181-2/+5
| | | | | | | Without it, you cannot set the properties of a device named "help". Now you can with: $ nmcli device set ifname help autoconnect no
* cli: add nmcli device set commandLubomir Rintel2015-09-181-1/+11
| | | | Co-Authored-By: Thomas Haller <thaller@redhat.com>
* cli: fix connecting to a hidden SSID with 'nmcli dev wifi connect' (bgo #752173)Jiří Klimeš2015-08-141-1/+2
| | | | | | | We have to set 802-11-wireless.hidden=true to be able to connect to hidden SSIDs. nmcli user indicates hidden SSID with 'hidden yes' parameter. https://bugzilla.gnome.org/show_bug.cgi?id=752173
* cli: add 'ssid' parameter for 'nmcli device wifi rescan'Jiří Klimeš2015-08-141-3/+6
| | | | | | | 'ssid' can repeat when more SSIDs should be scanned, e.g. $ nmcli dev wifi rescan ssid "hidden cafe" ssid AP12 ssid "my home Wi-Fi" Bash completion fixed by thaller@redhat.com
* logging: support an "OFF" logging levelThomas Haller2015-08-041-1/+1
| | | | | | | | | | | | | | | | The only way to disable logging for a domain entirely is to omit the domain from the "domains" list. For example: "level=INFO, domains=PLATFORM,..." Now add an explicit level "OFF" to facilitate configuration like: "level=INFO, domains=ALL,WIFI_SCAN:OFF" It also supports "level=OFF, domains=PLATFORM:INFO" but this is for the most part equivalent to "level=INFO, domains=PLATFORM"
* cli: add 'slave-type' parameter for "nmcli con add" to bash completionJiří Klimeš2015-07-151-3/+9
| | | | Fixes: 1375d9c13ad6062f2c84089242f0dcfac1bd8e07
* cli: add "nmcli c add master" to bash-completionlr/cli-add-masterLubomir Rintel2015-07-121-22/+4
| | | | Remove the discouraged forms.
* cli: add bash completion for 'nmcli c add -- <property list>'lr/cli-add-propertiesLubomir Rintel2015-07-021-26/+43
| | | | | | Use the editor to obtain a list of possible properties for a type of connection. Let 'nmcli c modify' completion reuse it as well, to avoid code duplication.
* wimax: drop WiMAX support (bgo #747846)Dan Winship2015-04-171-16/+3
| | | | | | | | | | | | | | | | | | | | Even Fedora is no longer shipping the WiMAX SDK, so it's likely we'll eventually accidentally break some of the code in src/devices/wimax/ (if we haven't already). Discussion on the list showed a consensus for dropping support for WiMAX. So, remove the SDK checks from configure.ac, remove the WiMAX device plugin and associated manager support, and deprecate all the APIs. For compatibility reasons, it is still possible to create and save WiMAX connections, to toggle the software WiMAX rfkill state, and to change the "WIMAX" log level, although none of these have any effect, since no NMDeviceWimax will ever be created. nmcli was only compiling in support for most WiMAX operations when NM as a whole was built with WiMAX support, so that code has been removed now as well. (It is still possible to use nmcli to create and edit WiMAX connections, but those connections will never be activatable.)
* cli: allow multiple devices for 'nmcli device disconnect/delete' (bgo #746097)Jiří Klimeš2015-03-201-2/+6
| | | | | | | Allow disconnecting and deleting multiple interfaces at a time. It is much more user friendly. TAB and bash completions are supported as well. https://bugzilla.gnome.org/show_bug.cgi?id=746097
* cli/completion: add completion for --order optionThomas Haller2015-03-021-2/+29
| | | | | | | | | | | | | | This does not yet work, because the --order option contains colons which bash completion considers as separaters. For now, implement it and ignore that problem. It works correctly until you specify more then one order-columns separated by colon. https://bugzilla.gnome.org/show_bug.cgi?id=738613 Fixes: 40e98f5d685bc41da32f65e6ee3b5ad1b46cca3f
* cli/completion: add completion for --colors optionThomas Haller2015-02-231-1/+8
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=738613 Fixes: 758e488f13140e55581c756ebab5ed7edb716f65
* nmcli/bash-completion: don't allow specifying connection by apath for ↵Thomas Haller2014-12-221-1/+1
| | | | | | | | 'connection modify' The following must not be allowed: $ nmcli connection modify apath /org/freedesktop/NetworkManager/ActiveConnection/0
* nmcli/bash-completion: fix detecting connection for connection modifyThomas Haller2014-12-221-2/+2
| | | | | | | | | | Previously we would only complete connections given by ID. The following would work: $ nmcli connection modify id <ID> <TAB> $ nmcli connection modify <ID> <TAB> $ nmcli connection modify uuid <UUID> <TAB> but the following would not work: $ nmcli connection modify <UUID> <TAB>
* nmcli/bash-completion: complete [+-] modifier for `connection modify` propertyThomas Haller2014-12-011-1/+6
| | | | | Fixes nmcli connection modify CONNECTION +conn<TAB>
* cli: add 'nmcli agent' command (bgo #739568)Jiří Klimeš2014-11-071-1/+6
| | | | | | | | | | | | | Synopsis: nmcli agent { secret | polkit | all } The command runs separate NetworkManager secret agent or session polkit agent, or both. It is useful when - no other secret agent is available (such as GUI nm-applet, gnome-shell, KDE applet) - no other polkit agent is available (such as polkit-gnome-authentication-agent-1, polkit-kde-authentication-agent-1 or lxpolkit) https://bugzilla.gnome.org/show_bug.cgi?id=739568