X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=zyxel%2Fswitchmap.py;fp=zyxel%2Fswitchmap.py;h=6a402cfaa12e97c2c675e1c764638b1093b0bf30;hb=2e45645ca72842c1ef12d708b3cdf1635f148a3f;hp=d0800ccb3156cd669c15a251b9a50e86fb3aebec;hpb=b77873b7d04009be2cb42e5b9504d1867e679a9b;p=nms diff --git a/zyxel/switchmap.py b/zyxel/switchmap.py index d0800cc..6a402cf 100755 --- a/zyxel/switchmap.py +++ b/zyxel/switchmap.py @@ -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 "%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 =)