1. 30 Mar, 2017 3 commits
  2. 06 Mar, 2017 1 commit
  3. 11 Nov, 2016 1 commit
  4. 04 Oct, 2016 1 commit
    • Atul Anand's avatar
      proxy: change semantics of pac-script · 20098591
      Atul Anand authored
      libnm-core: pac-script property in NMSettingProxy now represents the
      script itself not the location. It ensures that the connection is
      self contained.
      
      nmcli: Supports loading of PAC Script via file path or written explicitly.
      20098591
  5. 19 Sep, 2016 1 commit
  6. 20 Aug, 2016 2 commits
    • Beniamino Galvani's avatar
      cli: return sane error message for D-Bus policy permission errors · e9f96024
      Beniamino Galvani authored
      The error returned to users when a load_connection(s)/set_logging call
      fails due to D-Bus policy denial is a bit obscure:
      
        $ nmcli general logging level debug
        Error: failed to set logging: Rejected send message, 4 matched rules;
        type="method_call", sender=":1.233" (uid=1001 pid=27225 comm="nmcli
        general logging level debug ")
        interface="org.freedesktop.NetworkManager" member="SetLogging" error
        name="(unset)" requested_reply="0" destination=":1.207" (uid=0
        pid=25793 comm="/usr/sbin/NetworkManager --no-daemon ")
      
      Convert it to a more comprehensible:
      
        $ nmcli general logging level debug
        Error: failed to set logging: access denied
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1362542
      (cherry picked from commit 805925f9)
      e9f96024
    • Beniamino Galvani's avatar
      cli: return sane error message for D-Bus policy permission errors · 805925f9
      Beniamino Galvani authored
      The error returned to users when a load_connection(s)/set_logging call
      fails due to D-Bus policy denial is a bit obscure:
      
        $ nmcli general logging level debug
        Error: failed to set logging: Rejected send message, 4 matched rules;
        type="method_call", sender=":1.233" (uid=1001 pid=27225 comm="nmcli
        general logging level debug ")
        interface="org.freedesktop.NetworkManager" member="SetLogging" error
        name="(unset)" requested_reply="0" destination=":1.207" (uid=0
        pid=25793 comm="/usr/sbin/NetworkManager --no-daemon ")
      
      Convert it to a more comprehensible:
      
        $ nmcli general logging level debug
        Error: failed to set logging: access denied
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1362542
      805925f9
  7. 01 Aug, 2016 2 commits
  8. 29 Jun, 2016 3 commits
  9. 07 Dec, 2015 1 commit
  10. 10 Nov, 2015 1 commit
    • Beniamino Galvani's avatar
      cli: add command for displaying LLDP neighbors · 5b313798
      Beniamino Galvani authored
      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
      5b313798
  11. 09 Nov, 2015 1 commit
  12. 09 Jun, 2015 1 commit
  13. 20 Nov, 2014 1 commit
  14. 07 Nov, 2014 4 commits
    • Dan Winship's avatar
      libnm: create NMDhcpConfig as parent of NMDhcp4Config and NMDhcp6Config · ca18b2d4
      Dan Winship authored
      As with NMIP4Config and NMIP6Config, merge the two DHCP config classes
      into one in the public API.
      ca18b2d4
    • Dan Winship's avatar
      libnm: create NMIPConfig as parent of NMIP4Config and NMIP6Config · d34910b1
      Dan Winship authored
      Create NMIPConfig as the parent of NMIP4Config and NMIP6Config, and
      remove the two subclasses from the public API; while it's convenient
      to still have both internally, they are now identical to the outside
      world.
      d34910b1
    • Dan Winship's avatar
      libnm-core: add NMSettingIPConfig:gateway, drop NMIPAddress:gateway · f17699f4
      Dan Winship authored
      The gateway is a global property of the IPv4/IPv6 configuration, not
      an attribute of any particular address. So represent it as such in the
      API; remove the gateway from NMIPAddress, and add it to
      NMSettingIPConfig.
      
      Behind the scenes, the gateway is still serialized along with the
      first address in NMSettingIPConfig:addresses, and is deserialized from
      that if the settings dictionary doesn't contain a 'gateway' key.
      
      Adjust nmcli's interactive mode to prompt for IP addresses and gateway
      separately. (Patch partly from Jirka Klimeš.)
      f17699f4
    • Dan Winship's avatar
      libnm-core, all: merge IPv4 and IPv6 address/route types · 21c8a6b2
      Dan Winship authored
      Merge NMIP4Address and NMIP6Address into NMIPAddress, and NMIP4Route
      and NMIP6Route into NMIPRoute. The new types represent IP addresses as
      strings, rather than in binary, and so are address-family agnostic.
      21c8a6b2
  15. 28 Oct, 2014 1 commit
    • Dan Winship's avatar
      libnm: change GSList to GPtrArray in libnm methods · 6ae42248
      Dan Winship authored
      libnm mostly used GPtrArrays in its APIs, except that arrays of
      connections were usually GSLists. Fix this and make them GPtrArrays
      too (and rename nm_client_list_connections() to
      nm_client_get_connections() to match everything else).
      6ae42248
  16. 01 Aug, 2014 2 commits
    • Dan Winship's avatar
      libnm: add NetworkManager.h, disallow including individual headers · d0b05b34
      Dan Winship authored
      Add NetworkManager.h, which includes all of the other NM header, and
      require all external users of libnm to use that rather than the
      individual headers.
      
      (An exception is made for nm-dbus-interface.h,
      nm-vpn-dbus-interface.h, and nm-version.h, which can be included
      separately.)
      d0b05b34
    • Dan Winship's avatar
      libnm, core, cli, tui: fix the capitalization of various types · 3ac0f528
      Dan Winship authored
      GLib/Gtk have mostly settled on the convention that two-letter
      acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
      become initial-caps-only (eg, "Tcp").
      
      NM was inconsistent, with most long acronyms using initial caps only
      (Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
      PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
      three-or-more-letter-long acronyms (and update nmcli and nmtui for the
      libnm changes).
      3ac0f528
  17. 30 Jul, 2014 1 commit
    • Dan Winship's avatar
      clients: reorganize source tree, put all the installed clients together · 3d25d704
      Dan Winship authored
      Create a new clients/ subdirectory at the top level, and move cli/ and
      tui/ into it, as well as nm-online.c (which was previously in test/,
      which made no sense).
      
      cli/ was split into two subdirectories, src/ and completion/. While
      this does simplify things (given that the completion file and the
      binary both need to be named "nmcli"), it bloats the source tree, and
      we can work around it by just renaming the completion file at install
      time. Then we can combine the two directories into one and just have
      it all under clients/cli/.
      3d25d704
  18. 24 Jun, 2014 1 commit
  19. 11 Jun, 2014 1 commit
  20. 06 Jun, 2014 1 commit
  21. 04 Jun, 2014 2 commits
  22. 22 Apr, 2014 1 commit
    • Jiří Klimeš's avatar
      nmcli: improve setting connection.secondaries property · 645f0204
      Jiří Klimeš authored
      - check if the values being set are existing connections
      - also allow specifying connections by names, translating them transparently
         to UUIDs.
      - nmcli-specific section for 'describe' command added
      
      (We use a global nm_cli variable in nmc_property_connection_set_secondaries())
      645f0204
  23. 17 Dec, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: allow specifying 'group.name' syntax for '--fields' · 94bb83a3
      Jiří Klimeš authored
      and use it for 'nmcli device show'.
      
      This allows filtering output not only for whole groups, but also for individual
      fields in commands that print data in groups (sections).
      
      Example:
      $ nmcli -f general.device,general.driver,ipv4,ipv6.address device show eth0
      GENERAL.DEVICE:                         eth0
      GENERAL.DRIVER:                         e1000e
      IP4.ADDRESS[1]:                         ip = 10.0.5.228/23, gw = 10.0.5.254
      IP4.ADDRESS[2]:                         ip = 5.5.5.5/32, gw = 5.5.5.1
      IP4.DNS[1]:                             192.168.122.1
      IP4.DNS[2]:                             8.8.8.8
      IP4.DOMAIN[1]:                          mycompany.com
      94bb83a3
  24. 22 Nov, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: support file names for 'config' argument when creating team connections · a3c06afc
      Jiří Klimeš authored
      nmcli con add type team config /home/cimrman/team-config.json
      
      libteam (and in turn NetworkManager) configures team devices via plain config
      data in JSON format. However, it is useful and more user-friendly for nmcli to
      accept also a file name that contains the config data, and read it. Thus the
      user is not forced to type whole (possibly long) config on the command line.
      a3c06afc
  25. 16 May, 2013 1 commit
  26. 07 May, 2013 2 commits
    • Jiří Klimeš's avatar
      cli: 'connection add' command for adding NM connections non-interactively · 39012810
      Jiří Klimeš authored
      A few examples:
      nmcli --ask connection add
      nmcli connection add type ethernet
      nmcli -p connection add type ethernet con-name "my ethernet connection 1"
      nmcli connection add type ethernet ip4 192.168.100.5/24
      nmcli connection add type ethernet ip4 192.168.100.100/24 gw4 192.168.100.1 ip4 1.2.3.4 ip6 abbe::cafe
      nmcli connection add type ethernet ifname eth0
      nmcli connection add type ethernet autoconnect no ifname eth0
      nmcli connection add type wifi con-name Rakosnicek ssid Brcalnik
      nmcli --ask connection add type wifi con-name My_WiFi
      nmcli c a type infiniband con-name Infi1 transport-mode connected
      nmcli c a type bluetooth addr 12:54:00:fd:db:26
      nmcli c a type bluetooth addr 12:54:00:fd:db:26 bt-type dun-cdma
      nmcli c a type gsm apn internet
      nmcli c a type cdma
      nmcli c a type bond
      nmcli c a type bond ifname mybond0 mode active-backup
      nmcli c a ifname maxipes-fik type vlan dev eth0 id 55
      nmcli c a con-name VLAN1 type vlan dev eth0 id 44 ingress "2:4,3:55" egress "1:3" flags 6
      nmcli c a type bridge ifname br0 stp on ip4 10.0.0.25
      nmcli c a ifname eth0 type bridge-slave master 30fc816a-e7dd-4ae7-a86e-ab0c9cee51c2 hairpin no path-cost 333 priority 20
      nmcli c a type bridge-slave master br2
      39012810
    • Jiří Klimeš's avatar
      cli: add functions for creating NM address and route structures to common.c · 5761a46d
      Jiří Klimeš authored
      nmc_parse_and_build_ip[4|6]_address() creating NMIP[4|6]Address
      nmc_parse_and_build_ip[4|6]_route() creating NMIP[4|6]Route
      5761a46d
  27. 09 May, 2012 1 commit
    • Jiří Klimeš's avatar
      cli: show progress in --pretty mode for 'nmcli con up' · 191da673
      Jiří Klimeš authored
      We need to use a workaround for VPN connection state. There is a bug somewhere
      causing that vpn-state-changed signal is not issued on active VPN connection.
      Debugging showed that D-Bus PropertiesChanged and VpnStateChanged signals are
      not processed properly. That's why libnm-glib's VPN connection object is not
      updated. The issue may lie in libnm-glib or even in dbus-glib.
      I wasn't able to get VpnStateChanged signal via dbus-glib
      (dbus_g_proxy_add_signal() and dbus_g_proxy_connect_signal()), however received
      the signal successfully using GDBus.
      
      Until the issue is analyzed and fixed, we need to ask for VPN state of active
      VPN connection every second in order to show progress and exit correctly.
      191da673
  28. 06 Jan, 2012 1 commit