link executor: use slightly different strategy for taking vlans down
This commit is contained in:
parent
dc52642d73
commit
80cdfc7f96
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue