tunnel executor: support mocking

This commit is contained in:
Ariadne Conill 2020-08-19 03:13:56 -06:00
parent 953666f1fb
commit 5fb1b4b26c

View file

@ -19,10 +19,10 @@ PARAMS=$(set | sed -E '
case "$PHASE" in case "$PHASE" in
pre-up) pre-up)
eval ip tunnel add $IFACE $PARAMS ${MOCK} eval ip tunnel add $IFACE $PARAMS
;; ;;
post-down) post-down)
ip tunnel del $IFACE ${MOCK} ip tunnel del $IFACE
;; ;;
depend) depend)
echo "$IF_TUNNEL_DEV" echo "$IF_TUNNEL_DEV"