GreenItSolutions has done a great job with their fork at switchpanel. Since I haven't had time to maintain this project lately, I recommend using their plugin instead.
Plugin for patch panels based on Tyler Bletsch's rack plugin
added option to use with 3com style switches that have port 2 above port 1