link executor: Unify code paths.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
d21d83fb26
commit
36fe61d8e7
1 changed files with 1 additions and 3 deletions
|
@ -55,11 +55,9 @@ up|down)
|
||||||
|
|
||||||
${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"
|
||||||
[ "$PHASE" = "down" ] && exit 0
|
[ "$PHASE" = "down" ] && exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
|
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
|
||||||
else
|
|
||||||
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
depend)
|
depend)
|
||||||
if is_vlan; then
|
if is_vlan; then
|
||||||
|
|
Loading…
Reference in a new issue