]> git.sesse.net Git - nms/blobdiff - zyxel/switchmap.py
Changed to seven distros. Oh, the madness!
[nms] / zyxel / switchmap.py
index d0800ccb3156cd669c15a251b9a50e86fb3aebec..6a402cfaa12e97c2c675e1c764638b1093b0bf30 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 
 from zyxelcommon import *
-distro_num_switches = [ 0, 0, 0, 0, 0 ];
+distro_num_switches = [ 0, 0, 0, 0, 0, 0, 0, 0 ];
 
 vlans = {}
 
@@ -12,10 +12,10 @@ for sw in range(1,7):
                print "   ",
 print ""
 
-for row in range(1,75,2):
+for row in range(1,73,2):
        print "\e[37;0m%2u: " % row,
        for sw in range(1,7):
-               if (row <= 3 and sw <= 3) or (row >= 69 and (sw == 1 or sw == 6)):
+               if (row <= 3 and sw <= 3) or (row >= 67 and (sw == 1 or sw == 6)) or (row >= 71 and (sw <= 3)):
                        print "%-20s " % "",
                else:
                        ip = retIP((row,sw))
@@ -38,7 +38,7 @@ for row in range(1,75,2):
                if sw == 3:
                        print "   ",
        print ""
-       if row in (17, 33, 49, 67):
+       if row in (17, 33, 49, 65):
                print ""
 
 # evil side-effect =)