summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-ip-tunnel.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-08-22 09:40:45 +0200
committerThomas Haller <thaller@redhat.com>2019-08-28 16:27:00 +0200
commitde439148dd5ee890d1879f48875c4624b1ec87d0 (patch)
tree4146c32e4576bfad332506355e449af41101005c /src/devices/nm-device-ip-tunnel.c
parentdc275121847fcfd02aeeb6360309e54300ebf3d4 (diff)
downloadNetworkManager-de439148dd5ee890d1879f48875c4624b1ec87d0.tar.gz
device: move redundant act_stage1_prepare() implementations to set hwaddr to NMDevice
This is so common, that NMDevice can handle it for us.
Diffstat (limited to 'src/devices/nm-device-ip-tunnel.c')
-rw-r--r--src/devices/nm-device-ip-tunnel.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c
index a490ea4cd2..ba73872132 100644
--- a/src/devices/nm-device-ip-tunnel.c
+++ b/src/devices/nm-device-ip-tunnel.c
@@ -965,15 +965,6 @@ set_property (GObject *object, guint prop_id,
}
}
-static NMActStageReturn
-act_stage1_prepare (NMDevice *device, NMDeviceStateReason *out_failure_reason)
-{
- if (!nm_device_hw_addr_set_cloned (device, nm_device_get_applied_connection (device), FALSE))
- return NM_ACT_STAGE_RETURN_FAILURE;
-
- return NM_ACT_STAGE_RETURN_SUCCESS;
-}
-
/*****************************************************************************/
static void
@@ -1060,7 +1051,7 @@ nm_device_ip_tunnel_class_init (NMDeviceIPTunnelClass *klass)
NM_LINK_TYPE_IPIP,
NM_LINK_TYPE_SIT);
- device_class->act_stage1_prepare = act_stage1_prepare;
+ device_class->act_stage1_prepare_set_hwaddr_ethernet = TRUE;
device_class->link_changed = link_changed;
device_class->can_reapply_change = can_reapply_change;
device_class->complete_connection = complete_connection;