]> git.sesse.net Git - nms/commitdiff
Yet more display fixes, and pull in the last few rows.
authorSteinar H. Gunderson <sesse@samfundet.no>
Thu, 6 Apr 2006 13:30:06 +0000 (13:30 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Thu, 6 Apr 2006 13:30:06 +0000 (13:30 +0000)
zyxel/switchmap.py

index 46f58e63ef2271370067167e93b782c70368046a..d1fba3667199f63feff199b06bc8667711df2a42 100644 (file)
@@ -9,10 +9,10 @@ for sw in range(1,7):
                print "   ",
 print ""
 
-for row in range(1,70,2):
+for row in range(1,75,2):
        print "\e[37m%2u: " % row,
        for sw in range(1,7):
-               if row <= 3 and sw <= 3:
+               if (row <= 3 and sw <= 3) or (row >= 69 and (sw == 1 or sw == 6)):
                        print "%-16s " % "",
                else:
                        print retColor((row,sw)), "%-15s " % retIP((row,sw)),