ip tunnel seems to be in an awful condition and ip
link works just fine.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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
log DEBUG "Removing tunnel device '${device}'..."
- ip tunnel del ${device}
+ ip link del ${device}
assert [ $? -eq 0 ]
}