Check if programmed AF id is equal to the requested AF id after re-programming a device.
Check if container annotation com.intel.fpga.mode is set to "intel.com/fpga-region". This annotation is set by device plugin. So, the check should help to filter out unwanted workflow that device plugin is not aware of.
FPGA device can be already programmed with requested bitstream. In this case hook should not programm the device again.