Dan Winship
8a2267ab6b
Fix a few misc issues noticed by Coverity
2012-04-05 13:30:09 -04:00
Jiří Klimeš
a11067f584
libnm-glib: add errors to device classes and nm_device_connection_compatible()
...
Add nm_device_connection_compatible() that returns an error when it fails.
nm_device_connection_valid() does the same work except it doesn't set GError.
2012-03-16 09:54:36 +01:00
Jiří Klimeš
366ac3c5a2
cli: use nm_device_connection_valid() function from libnm-glib
...
to verify whether device and connection match and don't duplicate the code
in nmcli.
2012-03-14 14:49:44 +01:00
Dan Williams
c113bf222a
cli: fix VLAN priority map listing
2012-03-09 14:56:11 -06:00
Dan Williams
bc50a2a75b
cli: add VLAN device support
2012-03-07 11:45:40 -06:00
Dan Winship
49214066a4
Fix capitalization of "InfiniBand"
...
"InfiniBand" has a capital "B". Fix that everywhere it's being used as
a human-readable string.
In particular, the RH initscripts recognize "TYPE=infiniband" and
"TYPE=InfiniBand", but not "TYPE=Infiniband", which is what we were
writing before.
2012-03-06 13:23:29 -05:00
Dan Williams
4fc8b8ccd0
cli: don't require a device for virtual connections
...
They may not have had their devices created yet, and the activation
process creates the device, so allow NULL device paths for
activation.
2012-03-06 12:01:49 -06:00
Jiří Klimeš
96a2bc43af
cli: add a new reason code -> string mapping
2012-03-06 11:39:11 +01:00
Jiří Klimeš
78f09078f1
cli: add Bond device support
2012-03-06 11:31:03 +01:00
Jiří Klimeš
5519ff9952
cli: add 'vlan' setting
2012-03-05 09:52:10 +01:00
Jiří Klimeš
71e7434d1a
cli: add 'bond' setting
2012-03-05 09:52:03 +01:00
Jiří Klimeš
501a389a19
cli: enable OLPC device now that we have it in libnm-glib
2012-03-02 09:02:33 +01:00
Colin Walters
74ec56d956
build: fix srcdir != builddir for new generated headers
2012-02-22 16:27:28 -06:00
Jiří Klimeš
d4d89bb0f5
cli: add REASON field to 'nmcli dev list' output
2012-02-09 15:39:57 +01:00
Jiří Klimeš
8e22a535cc
cli: add 'transport-mode' property of infiniband setting
2012-02-01 11:47:19 +01:00
Jiří Klimeš
3a6c69d576
cli: add 'pac-file' property of 802-1x setting
2012-02-01 10:50:56 +01:00
Thomas Graf
471fef2ad5
cli: print NMActiveConnection master property as MASTER-PATH
...
This is a proposal to include the NMActiveConnection master property in
nmcli con status.
Feel free to suggest a more user friendly method of printing this
information.
Signed-off-by: Thomas Graf <tgraf@redhat.com >
2012-01-25 11:24:50 -06:00
Jiří Klimeš
659c22ccf6
cli: fix 'nmcli con delete' (rh #771258 )
...
The command didn't delete the connection, because nmcli exited before NM could
check permissions (actually ConsoleKit didn't see the process).
Now nmcli waits for "Removed" signal or D-Bus return (error) message on "Delete"
method call.
2012-01-10 16:30:04 +01:00
Colin Walters
dab7dfaf35
build: fix srcdir != builddir
...
nm-version.h is in ${top_builddir}/include.
2012-01-09 14:20:36 -06:00
Jiří Klimeš
b76d7cd240
cli: added 'con status id|uuid|path <con>' for listing active connection details
...
'nmcli con status' still prints brief active connection list.
'nmcli con status id|uuid|path <con>' shows details of the selected active
connection.
2012-01-06 15:20:15 +01:00
Jiří Klimeš
a2e86dfb7d
cli: fix a crash (due to freeing static string)
2012-01-06 15:20:15 +01:00
Jiří Klimeš
7e4b14d5ae
cli: move IP config printing code from devices.c to common.c
...
That allows sharing the code between devices and active connections.
2012-01-06 15:20:15 +01:00
Jiří Klimeš
e4327518f3
cli: move helper IP conversion functions from devices.c to utils.c
2012-01-05 16:36:42 +01:00
Jiří Klimeš
46e336b7b4
cli: update displaying device details (IP and DHCP configuration)
2012-01-03 16:37:53 +01:00
Jiří Klimeš
c15d047b46
cli: allow field values to be null-terminated string arrays
...
Field values can now be string arrays. print_fields() recognizes the format and
prints values accordingly.
Setter functions was added to facilitate setting string vs. array:
set_val_str(), set_val_arr()
2012-01-03 15:07:17 +01:00
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