From 80cdfc7f961ede97b0b30e02c534c057a3c514e7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 24 Aug 2020 10:56:56 -0600 Subject: [PATCH] link executor: use slightly different strategy for taking vlans down --- executor-scripts/linux/link | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/executor-scripts/linux/link b/executor-scripts/linux/link index d8e87a9..c0d8b51 100755 --- a/executor-scripts/linux/link +++ b/executor-scripts/linux/link @@ -53,7 +53,9 @@ pre-up|post-down) fi ${MOCK} ip link $ADD_DEL link "$IF_VLAN_RAW_DEVICE" name "$IFACE" type vlan id "$IF_VLAN_ID" - [ "$UP_DOWN" = "up" ] && ${MOCK} ip link set $UP_DOWN dev $IFACE $IF_LINK_OPTIONS + [ "$UP_DOWN" = "down" ] && exit 0 + + ${MOCK} ip link set $UP_DOWN dev $IFACE $IF_LINK_OPTIONS else ${MOCK} ip link set $UP_DOWN dev $IFACE $IF_LINK_OPTIONS fi