correcly filter ports by switch:hardware_id extension