#!/bin/sh
# This script is executed as part of the hotplug event with
# HOTPLUG_TYPE=vnet, triggered by various scripts when an interface
# is configured (ACTION=ifup) or deconfigured (ACTION=ifdown).  The
# interface is available as INTERFACE, the real device as DEVICE.

[ "$DEVICE" == "lo" ] && exit 0

. /lib/functions.sh
. /lib/ipv6/lanv6_server.sh

case "$ACTION" in
	add)
		[ -z "$DELAY_COMMIT" ] && proto_lanv6_setup_multilan "$INTERFACE"
	;;
	delete)
		[ -z "$DELAY_COMMIT" ] && proto_lanv6_setup_multilan "$INTERFACE"
	;;
	commit)
		proto_lanv6_setup_multilan "$INTERFACE"
	;;
	*)
		# do nothing
	;;
esac