]> git.sesse.net Git - nms/commitdiff
Go back to full routing.
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 10 Apr 2006 19:13:37 +0000 (19:13 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 10 Apr 2006 19:13:37 +0000 (19:13 +0000)
zyxel/switchmap.py

index 721e0f68e72a1f31e1c4a471b9cd363c30b532fa..9dee86afe65f2ea3d87d9af83a48dffdb8278e42 100755 (executable)
@@ -1,8 +1,10 @@
 #! /usr/bin/env python
 
 from zyxelcommon import *
-distro_num_switches = [ 0, 0, 0, 0, 0, 0, 0, 0 ];
-distro_vlan_start = [ 301, 405, 509, 617, 727, 835, 938, 1041 ];
+distro_num_switches = [ 0, 0, 0, 0, 0, 0, 0, 0 ]
+# distro_vlan_start = [ 301, 405, 509, 617, 727, 835, 938, 1041 ]
+distro_vlan_start = [ 301, 401, 501, 601, 701, 801, 901, 1001 ]
+switches_per_cnet = 1
 
 vlans = {}
 
@@ -21,7 +23,7 @@ for row in range(1,73,2):
                else:
                        ip = retIP((row,sw))
                        distro = int(retSubnet((row,sw))) - 241
-                       vlan = (distro_num_switches[distro] / 5) + distro_vlan_start[distro]
+                       vlan = (distro_num_switches[distro] / switches_per_cnet) + distro_vlan_start[distro]
                        distro_num_switches[distro] = distro_num_switches[distro] + 1
 
                        text = "%s/%u" % (ip, vlan)