summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cli: add 'nmcli device delete <ifname>' command (rh #1034150)jk/dev-delete-rh1034150Jiří Klimeš2014-07-113-6/+137
| | | | | | | It only works for software devices. When called for a hardware device, an error is returned and the device is not deleted. https://bugzilla.redhat.com/show_bug.cgi?id=1034150
* libnm-glib: implement nm_device_delete() for D-Bus device' Delete() methodJiří Klimeš2014-07-113-14/+58
|
* device: add a new D-Bus 'Delete' method for removing software devicesJiří Klimeš2014-07-113-0/+51
|
* cli: show whether the device is software-based in CAPABILITIESJiří Klimeš2014-07-111-2/+4
|
* cli: show IS-SOFTWARE property in GENERAL section for devicesJiří Klimeš2014-07-111-13/+15
|
* libnm-glib: add nm_device_is_software() function to NMDeviceJiří Klimeš2014-07-113-0/+24
| | | | It says whether the device is a software one, according to device capabilities.
* device: indicate software devices in NMDeviceCapabilitiesJiří Klimeš2014-07-111-3/+4
| | | | It is visible by clients in 'capabilities' property.
* include: add NM_DEVICE_CAP_IS_SOFTWARE capabilityJiří Klimeš2014-07-111-2/+4
|
* merge branch 'th/kill_child'Thomas Haller2014-07-1013-188/+807
|\ | | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=725660 Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core: use nm_utils_kill_child_async() and nm_utils_kill_child_sync()Thomas Haller2014-07-106-181/+13
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core: add nm_utils_kill_child_async() and nm_utils_kill_child_sync() functionThomas Haller2014-07-105-1/+783
| | | | | | | | | | | | | | | | Add utility function to kill and reap a child process. https://bugzilla.gnome.org/show_bug.cgi?id=725660 Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core/test: move src/tests/test-general over to nm-test-utils.h (nmtst)Thomas Haller2014-07-102-6/+6
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * nmtst: ensure call to nm_utils_get_monotonic_timestamp_s() in nmtst_init()Thomas Haller2014-07-101-0/+5
|/ | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* libnm-glib/tests: remove waiting time for initializing NMClientThomas Haller2014-07-081-16/+0
| | | | | | This waiting time significantly increases the runtime of the tests. Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: unset G_DEBUG variable before calling vapigenThomas Haller2014-07-081-1/+3
| | | | | | | | | Defining G_DEBUG=fatal-warnings is useful for debugging, but it causes the build to fail due to asserts during vapigen. Unset G_DEBUG before calling vapigen. Signed-off-by: Thomas Haller <thaller@redhat.com>
* trivial: add a missing word to documentationDan Winship2014-07-071-1/+1
|
* contrib/rpm: add --quick argument to build_clean.sh scriptThomas Haller2014-07-041-4/+14
| | | | | | | | | | | Before, build_clean.sh always required building all NetworkManager and doing another `make distcheck` before calling rpmbuild. That is still a good idea, to ensure that we get a proper build. For some quick testing however, lets speed this up with a new --dist argument that only calls `make dist`. Signed-off-by: Thomas Haller <thaller@redhat.com>
* contrib/rpm: update spec file to make ppp_version dependent on fedora versionThomas Haller2014-07-041-0/+4
| | | | | | Fedora 21 (rawhide) needs ppp version 2.4.6. Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: call generate-setting-docs.py directly instead of through straceThomas Haller2014-07-041-1/+1
| | | | | | | This was added for debugging, but is no longer necessary. Also, strace might not be installed on any system so don't depend on it. Signed-off-by: Thomas Haller <thaller@redhat.com>
* contrib/rpm: add new package NetworkManager-config-connectivity-fedoraThomas Haller2014-07-043-3/+26
| | | | | | Provides config file 20-connectivity-fedora.conf Signed-off-by: Thomas Haller <thaller@redhat.com>
* bluez: ignore child BNEP interfacesDan Williams2014-07-031-0/+6
| | | | | | The interface is owned by the parent NMDeviceBt and is not independently usable. If not ignored, NM tries to assume a connection on the bnep interface and messes the Bluetooth connection up.
* bluez: suppress warning when already disconnectedDan Williams2014-07-031-1/+2
|
* bluez: handle Bluez4 PropertyChanged eventsDan Williams2014-07-031-16/+44
| | | | | | | | | | | The addition of Bluez5 support mistakenly broke support for Bluez4 property change events. Bluez4 uses a custom D-Bus interface that we must explicitly handle. This caused NM to ignore BT devices immediately after pairing, since the UUIDs only show up through a custom Bluez4 PropertyChanged even when pairing is complete. Only then do we finally know priv->capabilities, and only then is the NMBluezDevice usable.
* ifcfg-rh: fix reading 802.1x phase2 EAP-GTC methodDan Williams2014-07-034-2/+54
|
* keyfile: avoid assertion reading keyfile without connection.type propertyThomas Haller2014-07-031-10/+12
| | | | | | | Avoids the following warning: (NetworkManager:26113): libnm-util-CRITICAL **: nm_connection_get_setting_by_name: assertion 'name != NULL' failed Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: make veth devices default-unmanaged for nowDan Winship2014-07-021-0/+1
| | | | | | | | | We only want to treat a veth device as ethernet if (a) NM is running inside a container, and (b) the veth in question is the "inside" end of the veth, not the outside. Unfortunately, we don't have good heuristics for this at the moment, so just ignore veths for now. https://bugzilla.gnome.org/show_bug.cgi?id=731014
* libnm-util: merge nm-util-private and nm-utils-privateDan Williams2014-07-0211-131/+98
| | | | | No reason to have two differently named files for the same general purpose.
* core: use singleton nm_firewall_manager_get() throughout without taking ↵Thomas Haller2014-07-023-35/+22
| | | | | | | | | | | | additional ref No need to keep references of the singleton and take an additional ref when accessing nm_firewall_manager_get(). Especially, since the firewall manager instance was nowhere passed in from externally, it doesn't even sense for some vague testing purporse. Not to mention, that there are no tests that actually inject a firewall manager stub. Signed-off-by: Thomas Haller <thaller@redhat.com>
* supplicant: fix crash passing invalid parameter to AddBlob when adding networkThomas Haller2014-07-021-1/+1
| | | | | | | | | | | | The DBUS method 'AddBlob' expects a data argument of type 'ay'. Instead we passed the hash table 'blobs'. This must be broken for a long time and surprisingly stayed unnoticed. https://mail.gnome.org/archives/networkmanager-list/2014-July/msg00001.html Fixes: fb6cde508c1417765684ae940f72d639067ddf0a Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: remove unused @state variable from ↵Thomas Haller2014-07-021-3/+0
| | | | | | | nm_device_activate_schedule_stage3_ip_config_start() Fixes: 5affa446aa73eff28f4f20ab5037a5f3921fda34 Signed-off-by: Thomas Haller <thaller@redhat.com>
* docs: ignore a private headerDan Williams2014-07-011-0/+1
|
* docs: fix multi-line Since notationDan Williams2014-07-011-1/+2
|
* device: test dhcp[46]_config when getting properties, not dhcp[46]_clientJiří Klimeš2014-07-011-2/+2
| | | | | | An assertion in nm_dhcp4_config_get_dbus_path() has been actually fixed by 3d6936b2cc01fc72507b1ba9f7e66e1ec584e705 (hopefully for all cases). But still I think we should check _config here instead of _client.
* merge branch 'th/rh979425_set_virtual_iface_name'Thomas Haller2014-06-3020-274/+770
|\ | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=979425 Signed-off-by: Thomas Haller <thaller@redhat.com>
| * core: remove nm_utils_normalize_connection functionThomas Haller2014-06-306-125/+56
| | | | | | | | | | | | | | | | | | This functionality is now provided by nm_connection_normalize(). Contrary to nm_utils_normalize_connection(), nm_connection_normalize() is in libnm-util and available to clients as well. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libnm-util: normalize IP settings in connectionThomas Haller2014-06-303-31/+97
| | | | | | | | | | | | | | | | | | | | This is the same behaviour as nm_utils_normalize_connection(), which will soon be removed in favor of nm_connection_normalize(). This takes care, that normal connections always have an IP4 and IP6 setting, and that slave connections never have it. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libnm-util: validate master/slave-type property in NMSettingConnection::verify()Thomas Haller2014-06-301-4/+32
| | | | | | | | | | | | | | | | | | | | | | - Before, when setting the slave-type to an invalid type, the setting was silently accepted. Now verification fails with "Unknown slave type '%s'" - Before, the @master property was not checked. So you could have a @slave-type, without having @master set. And similarly, you could have @master, but no @slave-type. Fix both issues. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libnm-util: normalize virtual_iface_name in NMSettingsThomas Haller2014-06-3011-96/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some type-specific NMSetting implementations (bond, bridge, team, vlan) have their own 'interface-name' property. This property will be deprecated in favour of 'interface-name' in NMSettingConnection. Change verify() and normalize() to check that the redundant values match and repair/normalize the properties. Force the virtual interface name of the type-specific setting to be equal to NMSettingConnection:interface_name. This way, the depreacted field stays valid and backward compatible. NMSettingInfiniband is special, because it does not have a backing property for the interface name, although it implements get_virtual_iface_name(). To account for this, some special handling is needed in order not to change the behaviour of get_virtual_iface_name(). Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libnm-util: add function nm_connection_normalizeThomas Haller2014-06-306-22/+195
| | | | | | | | | | | | | | | | | | | | | | This function behaves like verify(), but it also performs some normalization/fixing of inconsistent connections. Contrary to verify(), this function might modify the settings. This will be mainly used, to repair connections from older versions and to fix deprecated options. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * test: nm_connection_verify() sets the interface-name to virtual_iface_name.Thomas Haller2014-06-301-0/+44
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * libnm-util: add function nm_connection_get_interface_name()Thomas Haller2014-06-304-1/+34
|/ | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* contrib/nm-live-vm: merge branch 'contrib/nm-live-vm'Thomas Haller2014-06-306-0/+317
|\ | | | | | | | | | | Merge script to create a VM image with NetworkManager. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: install required packages readline, ↵Thomas Haller2014-06-301-0/+3
| | | | | | | | | | | | gobject-introspection, and pygobject3 Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: fix run.sh script to into script directoryThomas Haller2014-06-301-0/+2
| | | | | | | | | | | | run.sh refers to the image file via relative path. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: start the VM with less memory (1024 mb)Thomas Haller2014-06-301-2/+3
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: install wget and setup bashrc and gitThomas Haller2014-06-302-0/+13
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: enable option main.debug for NM in VMThomas Haller2014-06-301-0/+1
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: write /etc/fstabThomas Haller2014-06-302-2/+8
| | | | | | | | | | | | | | Everytime you call mock again, the fstab file will be reset. So, we have to write it shortly before creating the image. Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: disable rate limiting in the journal of the VMThomas Haller2014-06-301-1/+7
| | | | | | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
| * contrib/nm-live-vm: don't remove the temporary directory with the extracted ↵Thomas Haller2014-06-301-1/+1
| | | | | | | | | | | | VM image Signed-off-by: Thomas Haller <thaller@redhat.com>