]> git.sesse.net Git - nms/commitdiff
Add a switch map generator.
authorSteinar H. Gunderson <sesse@samfundet.no>
Thu, 6 Apr 2006 13:17:44 +0000 (13:17 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Thu, 6 Apr 2006 13:17:44 +0000 (13:17 +0000)
zyxel/switchmap.py [new file with mode: 0644]

diff --git a/zyxel/switchmap.py b/zyxel/switchmap.py
new file mode 100644 (file)
index 0000000..c3c5432
--- /dev/null
@@ -0,0 +1,14 @@
+#! /usr/bin/env python
+
+from zyxelcommon import *
+
+print "    ",
+for sw in range(1,7):
+       print "%7u         " % sw,
+print ""
+
+for row in range(1,70,2):
+       print "%2u: " % row,
+       for sw in range(1,7):
+               print "%-15s " % retIP((row,sw)),
+       print ""