Add comparison functions for links, ports and devices