fix for 1765

fix for Cisco Nexus 5k discovery
oops sorry, rebased with the correct diff