Check link/switch/port status in topology comparison functions

    Comment out debug statements
    rename sum variable as it is a reserved keyword