link executor: Unify code paths.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-08-26 22:41:32 +02:00
parent d21d83fb26
commit 36fe61d8e7

View file

@ -55,11 +55,9 @@ up|down)
${MOCK} ip link $ADD_DEL link "$IF_VLAN_RAW_DEVICE" name "$IFACE" type vlan id "$IF_VLAN_ID"
[ "$PHASE" = "down" ] && exit 0
fi
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
else
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
fi
;;
depend)
if is_vlan; then