link executor: use slightly different strategy for taking vlans down

This commit is contained in:
Ariadne Conill 2020-08-24 10:56:56 -06:00
parent dc52642d73
commit 80cdfc7f96

View file

@ -53,7 +53,9 @@ pre-up|post-down)
fi fi
${MOCK} ip link $ADD_DEL link "$IF_VLAN_RAW_DEVICE" name "$IFACE" type vlan id "$IF_VLAN_ID" ${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 else
${MOCK} ip link set $UP_DOWN dev $IFACE $IF_LINK_OPTIONS ${MOCK} ip link set $UP_DOWN dev $IFACE $IF_LINK_OPTIONS
fi fi