Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | settings: shortcut nm_settings_get_connection_by_uuid() if @uuid is invaliddcbw/dcbw/devices-for-all-1 | Thomas Haller | 2014-12-11 | 1 | -0/+3 |
| | | | | Signed-off-by: Thomas Haller <thaller@redhat.com> | ||||
* | fixup! core: allow multiple devices with the same interface name | Dan Williams | 2014-12-11 | 1 | -11/+4 |
| | | | | VPNs won't necessarily specify a device. | ||||
* | core: allow multiple devices with the same interface name | Dan Williams | 2014-12-11 | 6 | -125/+192 |
| | | | | | | | | | | | | | | | | | | | | | | | | | But, of course, only one realized device can have the same interface name at a time. This commit effectively reverts most of: 1b37cd03409fa3c0fb26fb6e8093b54b2b7c5d8d core: allow ActiveConnections to be created without a device But it's not easy to do a separate revert of that code due to interdependencies with nm-manager.c. Creating devices when they are defined by a connection also makes makes it possible to require the NMDevice to be present when activating it, which means we can remove a bunch of code from NMManager that had to handle software devices not existing yet at the time of the activation request. But it also means we must be more careful when finding master interfaces during slave activation, since we cannot simply match by interface name alone. Instead we must find the master which matches both the interface name and can control slaves of the type which is being activated. | ||||
* | fixup! core: ensure platform links are compatible with the NMDevice | Dan Williams | 2014-12-11 | 4 | -3/+5 |
| | | | | | Some of these devices didn't specify their "connection_type" earlier, but that was an oversight. Fix that. | ||||
* | core: ensure platform links are compatible with the NMDevice | Dan Williams | 2014-12-11 | 19 | -21/+121 |
| | | | | | | | | Ensure the platform link with the same interface name as the NMDevice is actually compatible with it before using the link for initialization of device properties. If not, remove the NMDevice and create a new one since there are kernel resources with a different type. | ||||
* | fixup! libnm/libnm-glib: add NMClient.get_all_devices() method and ↵ | Dan Williams | 2014-12-11 | 5 | -6/+125 |
| | | | | "all-devices" property | ||||
* | fixup! libnm/libnm-glib: add NMClient.get_all_devices() method and ↵ | Dan Williams | 2014-12-11 | 1 | -0/+8 |
| | | | | "all-devices" property | ||||
* | libnm/libnm-glib: add NMClient.get_all_devices() method and "all-devices" ↵ | Dan Williams | 2014-12-11 | 8 | -32/+167 |
| | | | | | | | property Mirror new NetworkManager API to return both real devices and device placeholders. | ||||
* | fixup! api/manager: add GetAllDevices() method and AllDevices property | Dan Williams | 2014-12-11 | 3 | -14/+42 |
| | |||||
* | api/manager: add GetAllDevices() method and AllDevices property | Dan Williams | 2014-12-11 | 3 | -3/+67 |
| | | | | Returns both realized and un-realized devices. | ||||
* | fixup! core: create devices first and realize them later | Dan Williams | 2014-12-11 | 1 | -2/+3 |
| | |||||
* | fixup! core: create devices first and realize them later | Dan Williams | 2014-12-11 | 1 | -18/+1 |
| | | | | All virtual connections are now backed by NMDevices. | ||||
* | fixup! core: create devices first and realize them later | Dan Williams | 2014-12-11 | 1 | -0/+6 |
| | | | | Don't delete software devices, just unrealize them. | ||||
* | fixup! core: create devices first and realize them later | Dan Williams | 2014-12-11 | 1 | -1/+1 |
| | |||||
* | fixup! core: create devices first and realize them later | Dan Williams | 2014-12-11 | 1 | -8/+13 |
| | | | | Don't leak unrealized devices in existing APIs. | ||||
* | core: create devices first and realize them later | Dan Williams | 2014-12-11 | 12 | -206/+270 |
| | | | | | | | | | | Unrealized devices aren't backed by kernel resources and so won't know all of their attributes. That means three things: 1) they must update their attributes when they become realized 2) they must clear those attributes when unrealized 3) they must be looser in checking compatible connections until they are realized | ||||
* | core: rearrange some VLAN code and clean up dispose() | Dan Williams | 2014-12-11 | 1 | -52/+38 |
| | | | | | Move parent-related stuff before its callers and clean up dispose so that we no longer need priv->disposed. | ||||
* | platform: move InfiniBand property reading into the platform | Dan Williams | 2014-12-11 | 5 | -16/+165 |
| | |||||
* | fixup! core: earlier software capability detection | Dan Williams | 2014-12-11 | 1 | -2/+5 |
| | |||||
* | core: earlier software capability detection | Dan Williams | 2014-12-11 | 6 | -18/+50 |
| | | | | | | | We need to know whether we can create interfaces of any given NMDevice subclass or not. So don't rely on just the NMPlatformLink for that information, because we won't have a platform link for software devices before we create them. | ||||
* | fixup! core: add class function for device unrealization | Dan Williams | 2014-12-11 | 1 | -1/+4 |
| | |||||
* | fixup! core: add class function for device unrealization | Dan Williams | 2014-12-11 | 4 | -19/+25 |
| | |||||
* | fixup! core: add class function for device unrealization | Dan Williams | 2014-12-11 | 1 | -12/+28 |
| | |||||
* | core: add class function for device unrealization | Dan Williams | 2014-12-11 | 4 | -13/+120 |
| | |||||
* | fixup! libnm-glib/libnm: add support for Realized device property | Dan Williams | 2014-12-11 | 6 | -63/+64 |
| | |||||
* | libnm-glib/libnm: add support for Realized device property | Dan Williams | 2014-12-11 | 6 | -0/+81 |
| | |||||
* | fixup! core: add "real" NMDevice property | Dan Williams | 2014-12-11 | 4 | -25/+24 |
| | |||||
* | core: add "realized" NMDevice property | Dan Williams | 2014-12-11 | 4 | -6/+67 |
| | | | | | | | This property is TRUE for devices that exist either as a kernel device or are backed by some other resource (eg, ModemManager object, Bluez device, etc). It will eventually be FALSE for software devices that are not yet instantiated. | ||||
* | fixup! core: check duplicate devices by interface name not UDI | Dan Williams | 2014-12-11 | 1 | -0/+4 |
| | |||||
* | core: check duplicate devices by interface name not UDI | Dan Williams | 2014-12-11 | 1 | -15/+13 |
| | | | | | | We can't have devices with duplicate interface names so we might as well use that for dupe checking instead of the (mostly useless) UDI. | ||||
* | fixup! core: split device creation and device setup | Dan Williams | 2014-12-11 | 1 | -0/+3 |
| | |||||
* | fixup! core: split device creation and device setup | Dan Williams | 2014-12-11 | 1 | -2/+1 |
| | |||||
* | fixup! core: split device creation and device setup | Dan Williams | 2014-12-11 | 1 | -5/+0 |
| | |||||
* | fixup! core: split device creation and device setup | Dan Williams | 2014-12-11 | 2 | -3/+3 |
| | |||||
* | fixup! core: split device creation and device setup | Dan Williams | 2014-12-11 | 8 | -67/+67 |
| | |||||
* | core: split device creation and device setup | Dan Williams | 2014-12-11 | 30 | -794/+781 |
| | | | | | | Future patches will create devices long before they are backed by kernel resources, so we need to split NMDevice object creation from actual setup based on the backing resources. | ||||
* | fixup! core: move permanent and initial MAC address reading to NMDevice and ↵ | Dan Williams | 2014-12-11 | 2 | -26/+30 |
| | | | | NMPlatform | ||||
* | core: move permanent and initial MAC address reading to NMDevice and NMPlatform | Dan Williams | 2014-12-11 | 9 | -239/+176 |
| | | | | | | | | Ethernet, WiFi, and VLAN used the same implementation for initial address. Ethernet and WiFi used the same implementation (and duplicated code) for permanent MAC address, plus they both used ethtool in what should be generic code, which is better done in the platform. | ||||
* | fixup! platform: move driver & firmware version reading into the platform | Dan Williams | 2014-12-11 | 1 | -0/+5 |
| | |||||
* | platform: move driver & firmware version reading into the platform | Dan Williams | 2014-12-11 | 5 | -46/+73 |
| | |||||
* | platform: add nm_platform_link_get_by_address() | Dan Williams | 2014-12-11 | 4 | -0/+78 |
| | |||||
* | platform: ensure created interface matches requested type | Dan Williams | 2014-12-11 | 1 | -5/+17 |
| | | | | | If the caller requested that a bond be created, don't return success if there was an existing bridge with the same name. | ||||
* | fixup! platform: return link objects from add functions | Dan Williams | 2014-12-11 | 3 | -3/+4 |
| | |||||
* | fixup! platform: return link objects from add functions | Dan Williams | 2014-12-11 | 1 | -5/+15 |
| | |||||
* | platform: return link objects from add functions | Dan Williams | 2014-12-11 | 14 | -59/+124 |
| | |||||
* | fixup! core: move virtual interface name handling into device plugins | Thomas Haller | 2014-12-11 | 1 | -4/+6 |
| | |||||
* | fixup! core: move virtual interface name handling into device plugins | Thomas Haller | 2014-12-11 | 1 | -0/+8 |
| | | | | (allow-none) for the out arguments | ||||
* | fixup! core: move virtual interface name handling into device plugins | Thomas Haller | 2014-12-11 | 2 | -5/+8 |
| | | | | Saves 16 copies of these static arrays. | ||||
* | fixup! core: move virtual interface name handling into device plugins | Dan Williams | 2014-12-11 | 1 | -63/+57 |
| | |||||
* | core: move virtual interface name handling into device plugins | Dan Williams | 2014-12-11 | 5 | -172/+248 |
| | | | | | | Instead of having a bunch of logic in the Manager for determining the VLAN and Infiniband virtual interface names, move the type-specific logic into the plugins themselves. |