From: Steinar H. Gunderson Date: Mon, 10 Apr 2006 19:13:37 +0000 (+0000) Subject: Go back to full routing. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4ea0cb1089851877c7979056ef83f32e19a7008e;p=nms Go back to full routing. --- diff --git a/zyxel/switchmap.py b/zyxel/switchmap.py index 721e0f6..9dee86a 100755 --- a/zyxel/switchmap.py +++ b/zyxel/switchmap.py @@ -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)