Commit Graph

132 Commits

Author SHA1 Message Date
Jiří Klimeš
1ed0476ba6 cli: add fields to 'general' group of 'nmcli dev list's output 2011-12-20 15:54:58 +01:00
Jiří Klimeš
241d5ebd16 cli: add 'status' and 'default6' fields to active connections list 2011-12-19 10:09:05 +01:00
Jiří Klimeš
bed4d15339 cli: use nm_utils_hwaddr_ntoa() from libnm-util 2011-12-09 13:47:06 +01:00
Jiří Klimeš
607cbffed2 cli: add 'infiniband' setting support 2011-12-09 13:20:36 +01:00
Jiří Klimeš
8962c98539 cli: use nm_connection_get_setting_<type>() to clean up code 2011-12-09 12:04:59 +01:00
Dan Winship
f49e88efe0 nmcli: add Infiniband support 2011-12-02 13:09:16 -06:00
Dan Winship
3dcfd305d6 trivial: three small obvious fixes 2011-11-17 13:25:14 -06:00
Jiri Popelka
9963a41da9 nmcli: add zone field to 'con status' 2011-11-09 21:40:13 -06:00
Larry Reaves
5194a785fc cli: initialize 'selector' variable to please jhbuild 2011-10-06 12:21:08 +02:00
Jiří Klimeš
785c1495ef cli: increase values indentation in multiline mode to align printed text 2011-09-07 12:20:56 +02:00
Jiří Klimeš
d9330ffdc4 cli: print some missing properties in settings 2011-09-07 12:10:42 +02:00
Jiří Klimeš
a7b55904e6 cli: print 'Permissions' property of NMSettingConnection setting 2011-09-06 17:17:01 +02:00
Jiří Klimeš
46b01cb057 cli: use libnm-util's constants for settings types 2011-09-06 16:04:12 +02:00
Jiří Klimeš
5c2927e40f cli: add missing GSM bands for GSM setting 2011-09-06 15:56:57 +02:00
Jiří Klimeš
568820a309 cli: remove useless static function prototypes 2011-09-06 15:30:15 +02:00
Jiří Klimeš
c01db4ac51 cli: add 'nmcli con delete' command for removing configured connections 2011-09-06 15:07:58 +02:00
Jiří Klimeš
b7e853c362 cli: use nm_access_point_get_bssid() instead of nm_access_point_get_hw_address()
nm_access_point_get_hw_address() is deprecated in 0.9.
Also change 'hwaddr' parameter for 'nmcli dev wifi list' to 'bssid'. 'hwaddr'
still works but is deprecated and not documented any more.
2011-09-06 13:37:23 +02:00
Dan Williams
4d635844ec cli: remove unused libraries from the makefile
Nothing in cli uses the marshalller stuff.
2011-08-12 11:05:08 -05:00
Jiří Klimeš
2d4619421c cli: simplify find_device_for_connection() 2011-06-15 15:00:55 +02:00
Andreas Schwab
6780818974 cli: fix incorrect cast to time_t pointer 2011-05-30 12:13:34 +02:00
Jiří Klimeš
5f627a52e5 cli: fix 'nmcli nm' producing critical assertion when NM is not running 2011-04-21 04:45:57 -04:00
Dan Williams
1701df4b75 core: add active connection state DEACTIVATING
Not used yet, but will be when device deactivating state gets
used.  Should be 100% backwards compatible with users that don't
know about it for now.
2011-03-17 14:23:21 -05:00
Jiří Klimeš
2a33ba8683 cli: use setting accessor helpers 2011-03-16 14:32:24 +01:00
Jiří Klimeš
653c4bc8a0 cli: update due to changes in libnm-glib's NMClient
nm_client_activate_connection() now uses NMConnection instead of
D-Bus connection path. Also, callback uses NMActiveConnection instead
of the path.
We can also remove the workaround waiting for "active-connections" change,
because the activation callback is now called *after* the NMActiveConnection
object is available in the active connections list.
2011-03-16 13:29:41 +01:00
Kjartan Maraas
6d0d302916 build: do the right thing with config.h (bgo #644664)
1) it shouldn't be included in headers
2) it should be the first thing included in source files
3) it's needed for getting translation right
2011-03-14 01:01:22 -05:00
Dan Williams
2140dad5e0 core: consolidate mobile broadband device types
These days more and more devices are showing up that support a
number of different access technology families in the same hardware,
like Qualcomm Gobi (CDMA and GSM), Pantech UM190 (CDMA and GSM),
Pantech UML290 (CDMA and LTE), LG VL600 (CDMA and LTE), Sierra
320U (GSM and LTE), etc.  The previous scheme of having device
classes based on access technology family simply cannot handle
this hardware and attempting to add LTE to both the CDMA and GSM
device classes would result in a bunch of code duplication that
we don't want.  There's a better way...

Instead, combine both CDMA and GSM device classes into a generic
"Modem" device class that provides capabilities indicating what
access technology families a modem supports, and what families
it supports immediately without a firmware reload.  (Gobi devices
for example require a firmware reload before they can switch
between GSM and CDMA).  This provides the necessary flexibility
to the client and allows us to keep the API stable when the
same consolidation change is made in ModemManager.

The current code doesn't yet allow multi-mode operation internally,
but the API is now what we want it to be and won't need to be
changed.
2011-02-25 10:16:17 -06:00
Dan Williams
eab5851145 libnm-util: remove nm_warning/nm_info/nm_error macros
Clients need to do their own logging using glib or whatever; these
macros while somewhat helpful were not flexible and are not a
substitute for actual logging in the client.  g_warning, g_message,
and g_error are more suitable anyway.
2011-02-23 11:42:04 -06:00
Dan Williams
c5cc53a557 core: add new SECONDARIES device state for dependent connections
Will be used for things like activating a VPN connection before
signaling that the device is activated, or maybe for bridges and
bonds, to ensure that applications don't think the system has
connectivity before everything is set up.
2011-02-23 10:25:49 -06:00
Jiří Klimeš
106afbae50 cli: libnm-glib now uses enums for wired and WiFi capabilities 2011-02-21 16:38:02 +01:00
Jiří Klimeš
6982337f2f cli: use libnm-glib's nm_device_get_device_type() to get device type
And implement device_type_to_string() to convert the type to a string.
2011-02-21 16:28:51 +01:00
Jiří Klimeš
40b14e3c46 cli: libnm-glib now uses enums for NMAccessPoint flags accessors 2011-02-21 15:41:12 +01:00
Jiří Klimeš
a9a30eb08c cli: compare nmcli and NM versions
nmcli gets NM version and compares it with its own and complains
when they differ. This is to indicate that the results are not reliable,
because the API could differ. '--nocheck' switches the checks off.
2011-02-16 17:36:50 +01:00
Jiří Klimeš
25ae47598c cli: add VERSION field to 'nmcli nm' command 2011-02-16 14:43:15 +01:00
Dan Williams
ec115ed442 api: add additional NM daemon states
DISCONNECTING: the only active network connection is now being disconnected
LOCAL, SITE, GLOBAL: one-stop items for level of connectivity, which
we'll use to show when we think we're actually connected to the internet
or behind a captive portal or something
2011-02-14 17:55:27 -06:00
Dan Williams
7971227011 api: add two more device states (IP_CHECK and DEACTIVATING)
We'll use IP_CHECK for detecting whether we're behind a captive
portal or on a network that does not have access to the Internet.
We'll probably run some variety of plugins during this stage to
help detect this, and possibly handle it for us (auto-login to
captive portal for example).

DEACTIVATING will be used for tearing down network shares or
cleanly closing network sessions when we're able to clean up
an activation.  ie, "pre-down" for Debian.
2011-02-14 17:09:36 -06:00
Jiří Klimeš
c6f479922e cli: print header while listing connections (nmcli -p con list)
It was removed by mistake when user connections were removed.
2011-02-14 17:01:33 +01:00
Jiří Klimeš
a6de5792d1 cli/build: make WiMAX support optional 2011-02-14 16:06:37 +01:00
Dan Williams
6d344a43e9 Merge remote-tracking branch 'origin/rm-userset'
There; it's merged.  Yay!
2011-02-12 22:51:12 -06:00
Jiří Klimeš
5f6b68862e cli: fix "format not a string literal and no format arguments" cc error
The string could contain printf format sequences.
2011-02-10 16:30:00 +01:00
Jiří Klimeš
f29b709590 cli: improve/add NM running checks
Check whether NetworkManager is running and return new error
NMC_RESULT_ERROR_NM_NOT_RUNNING when appropriate.
2011-02-10 14:39:47 +01:00
Jiří Klimeš
4242f18fb2 cli: don't poke NetworkManager D-Bus service names when it's not running
When getting status of NetworkManager via 'nmcli nm ...' and NetworkManager
is not running, do not call its D-Bus methods. It prevents NM to be implicitly
executed when configured as D-Bus activated service.
2011-02-10 01:54:04 +01:00
Dan Williams
5a14d17792 libnm-util: remove 802.1x PSK functions and defines
There was never a property for it anyway, so it never got serialized
across D-Bus, because it was folded into the "password" property in
wpa_supplicant between 0.5 and 0.6.
2011-01-28 13:48:54 -06:00
Dan Williams
b7259fd2a8 Merge remote branch 'origin/master' into rm-userset 2011-01-25 15:41:03 -06:00
Jiří Klimeš
36afce10a4 cli: add support for WWAN connections for 'nmcli con up' (bgo #640020) 2011-01-20 16:45:12 +01:00
Dan Williams
b5f3aa7120 libnm-glib: pass NMClient as first callback argument to activation callbacks
Better matches glib style.
2011-01-13 13:03:02 -06:00
Dan Williams
f9ceafd4a1 Merge remote branch 'origin/master' into rm-userset 2011-01-12 15:46:37 -06:00
Dan Williams
93486fc42e cli: add support for WiMAX devices and connections 2011-01-06 17:01:55 -06:00
Jiří Klimeš
592a1d4668 cli: add D-Bus object path field for APs (e.g.:nmcli -f NAME,SSID,BSSID,SIGNAL,DBUS-PATH dev wifi list) 2010-12-17 11:37:10 +01:00
Dan Williams
8f7aedc7e0 Merge remote branch 'origin/master' into rm-userset 2010-10-18 19:02:27 -05:00
Dan Williams
f62666dbff cli: don't crash if for some reason HW addresses aren't available (bgo #630534) 2010-09-27 16:29:56 -05:00