This patch moves init and port grabbing functions to a separate file to allow functions call from Dell plugin