diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-03-04 21:24:15 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-03-04 22:09:00 +0100 |
commit | 5eeae70f6992f7888e1a373614442b82b557e611 (patch) | |
tree | 9d040d244359dd081acc6c18ff0751089eef4e2c /src/devices/nm-device-ip-tunnel.c | |
parent | 3f92f43c8a516c172ea0ff7432466be4492d0739 (diff) | |
download | NetworkManager-5eeae70f6992f7888e1a373614442b82b557e611.tar.gz |
device/ip-tunnel: implement get_generic_capabilities()
Since 87a3df2e572e ("device: remove default-unmanaged and refactor
unmanaged flags") the device must properly report the IS_SOFTWARE
capability in order to be potentially activated.
Diffstat (limited to 'src/devices/nm-device-ip-tunnel.c')
-rw-r--r-- | src/devices/nm-device-ip-tunnel.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c index 0ba813eb51..f95f30e68b 100644 --- a/src/devices/nm-device-ip-tunnel.c +++ b/src/devices/nm-device-ip-tunnel.c @@ -788,6 +788,12 @@ ip4_config_pre_commit (NMDevice *device, NMIP4Config *config) nm_ip4_config_set_mtu (config, mtu, NM_IP_CONFIG_SOURCE_USER); } +static NMDeviceCapabilities +get_generic_capabilities (NMDevice *dev) +{ + return NM_DEVICE_CAP_IS_SOFTWARE; +} + static void unrealize_notify (NMDevice *device) { @@ -876,6 +882,7 @@ nm_device_ip_tunnel_class_init (NMDeviceIPTunnelClass *klass) device_class->update_connection = update_connection; device_class->check_connection_compatible = check_connection_compatible; device_class->create_and_realize = create_and_realize; + device_class->get_generic_capabilities = get_generic_capabilities; device_class->ip4_config_pre_commit = ip4_config_pre_commit; device_class->realize_start_notify = realize_start_notify; device_class->unrealize_notify = unrealize_notify; |