#!/bin/bash

action="$1"
interface="$2"

case $action in
post-up)
	/usr/sbin/wicked redfish hosts-update || :
;;
pre-down)
	/usr/sbin/wicked redfish hosts-remove || :
;;
esac

