Created format function to name attribute of NetDevice model