link exectutor: Don't re-create dummy interface when present.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-10-02 02:29:39 +02:00
parent c6faf452b9
commit fef7c55270

View file

@ -36,6 +36,8 @@ create)
echo "Interface ${IFACE} exists but is of type ${iface_type} instead of dummy" echo "Interface ${IFACE} exists but is of type ${iface_type} instead of dummy"
exit 1 exit 1
fi fi
exit 0
fi fi
${MOCK} ip link add "${IFACE}" type dummy ${MOCK} ip link add "${IFACE}" type dummy