From 5fb1b4b26ca4f1e71d973c8ece57364571897318 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 19 Aug 2020 03:13:56 -0600 Subject: [PATCH] tunnel executor: support mocking --- executor-scripts/linux/tunnel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/executor-scripts/linux/tunnel b/executor-scripts/linux/tunnel index 07c6141..8257a7f 100755 --- a/executor-scripts/linux/tunnel +++ b/executor-scripts/linux/tunnel @@ -19,10 +19,10 @@ PARAMS=$(set | sed -E ' case "$PHASE" in pre-up) - eval ip tunnel add $IFACE $PARAMS + ${MOCK} eval ip tunnel add $IFACE $PARAMS ;; post-down) - ip tunnel del $IFACE + ${MOCK} ip tunnel del $IFACE ;; depend) echo "$IF_TUNNEL_DEV"