Browse files

make-switches

  • Loading branch information...
1 parent d8b104f commit 726d82209a06133932747720fbddf4b523951c15 @technocake technocake committed Mar 25, 2013
Showing with 136 additions and 3 deletions.
  1. +4 −3 nms-simulator/make-switches.py
  2. +132 −0 nms-simulator/switchlist.txt
View
7 nms-simulator/make-switches.py
@@ -1,14 +1,15 @@
#!/usr/bin/env python
# coding: utf-8
-
+#
+# ./make-switches.py > switchlist.txt
off = [13,37,1,3]
switches =[]
def sw(i, num):
return "e%u-%u %s" % (i*2-1, num+1, 'off' if i in off else 'on')
-for i in range(42 + 1):
- if not ( i >= 1 and i <= 5 ) :
+for i in range(1, 42 + 1):
+ if not ( i >= 1 and i <= 5 ):
switches.append(sw(i, 0))
switches.append(sw(i, 1))
View
132 nms-simulator/switchlist.txt
@@ -0,0 +1,132 @@
+e1-3 off
+e1-4 off
+e3-3 on
+e3-4 on
+e5-3 off
+e5-4 off
+e7-3 on
+e7-4 on
+e9-3 on
+e9-4 on
+e11-1 on
+e11-2 on
+e11-3 on
+e11-4 on
+e13-1 on
+e13-2 on
+e13-3 on
+e13-4 on
+e15-1 on
+e15-2 on
+e15-3 on
+e15-4 on
+e17-1 on
+e17-2 on
+e17-3 on
+e17-4 on
+e19-1 on
+e19-2 on
+e19-3 on
+e19-4 on
+e21-1 on
+e21-2 on
+e21-3 on
+e21-4 on
+e23-1 on
+e23-2 on
+e23-3 on
+e23-4 on
+e25-1 off
+e25-2 off
+e25-3 off
+e25-4 off
+e27-1 on
+e27-2 on
+e29-1 on
+e29-2 on
+e31-1 on
+e31-2 on
+e33-1 on
+e33-2 on
+e35-1 on
+e35-2 on
+e37-1 on
+e37-2 on
+e39-1 on
+e39-2 on
+e41-1 on
+e41-2 on
+e43-1 on
+e43-2 on
+e43-3 on
+e43-4 on
+e45-1 on
+e45-2 on
+e45-3 on
+e45-4 on
+e47-1 on
+e47-2 on
+e47-3 on
+e47-4 on
+e49-1 on
+e49-2 on
+e49-3 on
+e49-4 on
+e51-1 on
+e51-2 on
+e51-3 on
+e51-4 on
+e53-1 on
+e53-2 on
+e53-3 on
+e53-4 on
+e55-1 on
+e55-2 on
+e55-3 on
+e55-4 on
+e57-1 on
+e57-2 on
+e57-3 on
+e57-4 on
+e59-1 on
+e59-2 on
+e59-3 on
+e59-4 on
+e61-1 on
+e61-2 on
+e61-3 on
+e61-4 on
+e63-1 on
+e63-2 on
+e63-3 on
+e63-4 on
+e65-1 on
+e65-2 on
+e65-3 on
+e65-4 on
+e67-1 on
+e67-2 on
+e67-3 on
+e67-4 on
+e69-1 on
+e69-2 on
+e69-3 on
+e69-4 on
+e71-1 on
+e71-2 on
+e71-3 on
+e71-4 on
+e73-1 off
+e73-2 off
+e73-3 off
+e73-4 off
+e75-1 on
+e75-2 on
+e77-1 on
+e77-2 on
+e79-1 on
+e79-2 on
+e81-1 on
+e81-2 on
+e83-1 on
+e83-2 on

0 comments on commit 726d822

Please sign in to comment.