summaryrefslogtreecommitdiff
path: root/src/core/devices/nm-device-veth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/devices/nm-device-veth.c')
-rw-r--r--src/core/devices/nm-device-veth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/devices/nm-device-veth.c b/src/core/devices/nm-device-veth.c
index 82762ba9b2..44d4052ea1 100644
--- a/src/core/devices/nm-device-veth.c
+++ b/src/core/devices/nm-device-veth.c
@@ -98,11 +98,14 @@ create_and_realize(NMDevice *device,
return FALSE;
}
+ /* For veths, users can define two connection profiles referencing each
+ * other as 'veth.peer'. Only the first to be activated will actually
+ * create the veth pair; the other must detect that interfaces already
+ * exist and proceed. */
peer = nm_setting_veth_get_peer(s_veth);
peer_device = nm_manager_get_device(NM_MANAGER_GET, peer, NM_DEVICE_TYPE_VETH);
if (peer_device) {
if (nm_device_parent_get_device(peer_device))
- /* The veth device and its peer already exist. No need to create it again. */
return TRUE;
}