#! /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 = {}
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))
if sw == 3:
print " ",
print ""
- if row in (17, 33, 49, 67):
+ if row in (17, 33, 49, 65):
print ""
# evil side-effect =)