link executor: Add support for interface aliases.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-09-04 00:48:44 +02:00
parent 2311316bfe
commit 6805262a9b
2 changed files with 8 additions and 0 deletions

View file

@ -70,6 +70,11 @@ up|down)
fi
${MOCK} ip link set $PHASE dev $IFACE $IF_LINK_OPTIONS
# Set alias is configured
if [ "${IF_ALIAS}" ]; then
${MOCK} ip link set alias "${IF_ALIAS}" dev "${IFACE}"
fi
;;
post-down)
if [ "${IF_LINK_TYPE}" = "dummy" ]; then