From d7357cc354182b23463a6c4dde3e7c09c2eaa9fe Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 4 Aug 2017 14:49:10 +0000 Subject: [PATCH] ip-tunnel: Use "ip link" instead of "ip tunnel" ip tunnel seems to be in an awful condition and ip link works just fine. Signed-off-by: Michael Tremer --- src/functions/functions.ip-tunnel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/functions.ip-tunnel b/src/functions/functions.ip-tunnel index c2885130..0e1115b2 100644 --- a/src/functions/functions.ip-tunnel +++ b/src/functions/functions.ip-tunnel @@ -107,7 +107,7 @@ ip_tunnel_add() { log DEBUG "Creating tunnel device '${device}' (mode=${mode})..." # Create the device. - if ! cmd ip tunnel add ${device} mode ${mode} ${cmd_args}; then + if ! cmd ip link add name ${device} type ${mode} ${cmd_args}; then error "Could not create tunnel device ${device}" return ${EXIT_ERROR} fi @@ -129,7 +129,7 @@ ip_tunnel_del() { log DEBUG "Removing tunnel device '${device}'..." - ip tunnel del ${device} + ip link del ${device} assert [ $? -eq 0 ] } -- 2.47.3