Fix switching port showing

Fix reading of config file to show active switching ports
Merge pull request #277 from nahy/master

Fix switching port showing