1. 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: make the the use of GInitable mandatory · 258e74eb
      Dan Winship authored
      Remove _nm_object_ensure_inited(), etc; objects that implement
      GInitable are now mandatory-to-init().
      
      Remove constructor() implementations that sometimes return NULL; do
      all the relevant checking in init() instead.
      
      Make nm_client_new() and nm_remote_settings_new() take a GCancellable
      and a GError**.
      258e74eb
  2. 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
  3. 09 Jan, 2014 1 commit
  4. 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
  5. 13 Nov, 2013 1 commit
  6. 11 Nov, 2013 1 commit
    • Thomas Haller's avatar
      cli: make command line parsing check for help option first · c9cfbae1
      Thomas Haller authored
      Move the checks for nmc_arg_is_help to the beginning of the
      checks for command matches.
      
      Up to now, no command begins with 'h', so this has no behavioral
      change whatsoever. But imagine a command that begins with 'h'
      (for example `nmcli general hostname`), in that case `nmcli general h`
      should still show the help, as users might be accustomed to this
      abbreviation.
      Signed-off-by: Thomas Haller's avatarThomas Haller <thaller@redhat.com>
      c9cfbae1
  7. 12 Sep, 2013 4 commits
  8. 04 Sep, 2013 1 commit
  9. 28 Aug, 2013 1 commit
  10. 31 May, 2013 2 commits
  11. 10 May, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: remove RUNNING field from default 'common' fields · a453563b
      Jiří Klimeš authored
      That way it is not displayed by default:
      $ nmcli general status
      
      But can be explicitly requested:
      $ nmcli -t -f running,version general status
      $ nmcli -f all general status
      
      E.g. Fedora initscripts do this in
      /etc/sysconfig/network-scripts/network-functions
      
      is_nm_running ()
      {
          [ "$(LANG=C nmcli -t --fields running nm status 2>/dev/null)" = "running" ]
      }
      a453563b
  12. 24 Apr, 2013 1 commit
    • Jiří Klimeš's avatar
      cli: remove obsolete 'nmcli nm' · 3560024d
      Jiří Klimeš authored
      The functionality is present in 'general', 'networking' and 'radio'.
      We changed syntax anyway, so it doesn't make much sense to keep 'nm'.
      3560024d
  13. 18 Apr, 2013 1 commit
  14. 08 Apr, 2013 6 commits
  15. 26 Mar, 2013 1 commit
  16. 13 Nov, 2012 1 commit
  17. 30 Apr, 2012 1 commit
  18. 28 Apr, 2012 1 commit
  19. 06 Sep, 2011 1 commit
  20. 21 Apr, 2011 1 commit
  21. 14 Mar, 2011 1 commit
  22. 16 Feb, 2011 2 commits
  23. 14 Feb, 2011 2 commits
  24. 10 Feb, 2011 2 commits
  25. 06 Jan, 2011 1 commit
  26. 17 Sep, 2010 1 commit
    • Jiří Klimeš's avatar
      cli: add 'nmcli nm enable' command · 979b6914
      Jiří Klimeš authored
      'enable' command queries and sets NetworkingEnabled property. It should be used
      by users. Previous 'sleep' command that actually did enable/disable,
      really calls Sleep() now and is not meant for common usage.
      979b6914
  27. 24 Mar, 2010 1 commit
    • Jiří Klimeš's avatar
      cli: 'dev list' adjustments · a91da03b
      Jiří Klimeš authored
      Modifications are mainly for multiline mode to ease parsing - each
      field name is prefixed with a section name.
      'dev list' now also supports printing particular sections specifed via
      '--fields' option.
      a91da03b