blob: 943699b02571f07121f4299d8bf228add5195ba1 [file] [log] [blame]
Brian O'Connoreb27c452014-12-07 02:43:58 -08001#!/usr/bin/python
2
fahad44e62c72015-03-04 14:55:35 -08003from opticalUtils import MininetOE, LINCSwitch, LINCLink
Brian O'Connoreb27c452014-12-07 02:43:58 -08004from mininet.topo import Topo
5from mininet.log import setLogLevel
6from mininet.node import RemoteController
7from mininet.cli import CLI
8
9class BigOpticalTopo( Topo ):
10
11 def build( self ):
12 # Optical layer ROADMs
13 o1ann = { "latitude": 32.508086, "longitude": -99.741564, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080014 O1 = self.addSwitch( 'ABLNTXRO', dpid='0000ffffffffff01', annotations=o1ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080015 o2ann = { "latitude": 35.084446, "longitude": -106.649719, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080016 O2 = self.addSwitch( 'ALBQNMMA', dpid='0000ffffffffff02', annotations=o2ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080017 o3ann = { "latitude": 42.652222, "longitude": -73.758333, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080018 O3 = self.addSwitch( 'ALBYNYSS', dpid='0000ffffffffff03', annotations=o3ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080019 o4ann = { "latitude": 33.755833, "longitude": -97.743057, "optical.regens": 5 }
fahad44e62c72015-03-04 14:55:35 -080020 O4 = self.addSwitch( 'ATLNGATL', dpid='0000ffffffffff04', annotations=o4ann, cls=LINCSwitch ) # ATLNGATL Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -080021 o5ann = { "latitude": 42.882778, "longitude": -78.877778, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080022 O5 = self.addSwitch( 'BFLONYFR', dpid='0000ffffffffff05', annotations=o5ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080023 o6ann = { "latitude": 45.781667, "longitude": -108.509167, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080024 O6 = self.addSwitch( 'BLNGMTMA', dpid='0000ffffffffff06', annotations=o6ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080025 o7ann = { "latitude": 39.293781, "longitude": -76.614127, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080026 O7 = self.addSwitch( 'BLTMMDCH', dpid='0000ffffffffff07', annotations=o7ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080027 o8ann = { "latitude": 33.517223, "longitude": -86.812225, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080028 O8 = self.addSwitch( 'BRHMALMT', dpid='0000ffffffffff08', annotations=o8ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080029 o9ann = { "latitude": 46.836379, "longitude": -100.796917, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080030 O9 = self.addSwitch( 'BSMRNDJC', dpid='0000ffffffffff09', annotations=o9ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080031 o10ann = { "latitude": 30.449722, "longitude": -91.184167, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080032 O10 = self.addSwitch( 'BTRGLAMA', dpid='0000ffffffffff0a', annotations=o10ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080033 o11ann = { "latitude": 41.881484, "longitude": -87.640432, "optical.regens": 4 }
fahad44e62c72015-03-04 14:55:35 -080034 O11 = self.addSwitch( 'CHCGILCL', dpid='0000ffffffffff0b', annotations=o11ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080035 o12ann = { "latitude": 35.224924, "longitude": -80.837502, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080036 O12 = self.addSwitch( 'CHRLNCCA', dpid='0000ffffffffff0c', annotations=o12ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080037 o13ann = { "latitude": 32.785278, "longitude": -79.938056, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080038 O13 = self.addSwitch( 'CHTNSCDT', dpid='0000ffffffffff0d', annotations=o13ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080039 o14ann = { "latitude": 41.498333, "longitude": -81.686943, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080040 O14 = self.addSwitch( 'CLEVOH02', dpid='0000ffffffffff0e', annotations=o14ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080041 o15ann = { "latitude": 39.965279, "longitude": -82.996666, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080042 O15 = self.addSwitch( 'CLMBOH11', dpid='0000ffffffffff0f', annotations=o15ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080043 o16ann = { "latitude": 42.36745, "longitude": -71.084918, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080044 O16 = self.addSwitch( 'CMBRMA01', dpid='0000ffffffffff10', annotations=o16ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080045 o17ann = { "latitude": 39.102778, "longitude": -84.516944, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080046 O17 = self.addSwitch( 'CNCNOHWS', dpid='0000ffffffffff11', annotations=o17ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080047 o18ann = { "latitude": 32.797524, "longitude": -96.780431, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080048 O18 = self.addSwitch( 'DLLSTXTL', dpid='0000ffffffffff12', annotations=o18ann, cls=LINCSwitch ) # DLLSTXTL Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -080049 o19ann = { "latitude": 39.744999, "longitude": -104.996391, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080050 O19 = self.addSwitch( 'DNVRCOMA', dpid='0000ffffffffff13', annotations=o19ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080051 o20ann = { "latitude": 42.332779, "longitude": -83.054169, "optical.regens": 5 }
fahad44e62c72015-03-04 14:55:35 -080052 O20 = self.addSwitch( 'DTRTMIBA', dpid='0000ffffffffff14', annotations=o20ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080053 o21ann = { "latitude": 31.756389, "longitude": -106.483611, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080054 O21 = self.addSwitch( 'ELPSTXMA', dpid='0000ffffffffff15', annotations=o21ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080055 o22ann = { "latitude": 36.73923, "longitude": -119.79423, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080056 O22 = self.addSwitch( 'FRSNCA01', dpid='0000ffffffffff16', annotations=o22ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080057 o23ann = { "latitude": 36.072222, "longitude": -79.793889, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080058 O23 = self.addSwitch( 'GNBONCEU', dpid='0000ffffffffff17', annotations=o23ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080059 o24ann = { "latitude": 41.765833, "longitude": -72.676389, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080060 O24 = self.addSwitch( 'HRFRCT03', dpid='0000ffffffffff18', annotations=o24ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080061 o25ann = { "latitude": 29.748333, "longitude": -95.36528, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080062 O25 = self.addSwitch( 'HSTNTX01', dpid='0000ffffffffff19', annotations=o25ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080063 o26ann = { "latitude": 30.33071, "longitude": -81.43, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080064 O26 = self.addSwitch( 'JCVLFLCL', dpid='0000ffffffffff1a', annotations=o26ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080065 o27ann = { "latitude": 39.096649, "longitude": -94.578716, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080066 O27 = self.addSwitch( 'KSCYMO09', dpid='0000ffffffffff1b', annotations=o27ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080067 o28ann = { "latitude": 40.5899999,"longitude": -73.6699993, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080068 O28 = self.addSwitch( 'LGISLAND', dpid='0000ffffffffff1c', annotations=o28ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080069 o29ann = { "latitude": 34.051227, "longitude": -118.252958, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080070 O29 = self.addSwitch( 'LSANCA03', dpid='0000ffffffffff1d', annotations=o29ann, cls=LINCSwitch ) # LSANCA03 Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -080071 o30ann = { "latitude": 36.168056, "longitude": -115.138889, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080072 O30 = self.addSwitch( 'LSVGNV02', dpid='0000ffffffffff1e', annotations=o30ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080073 o31ann = { "latitude":38.249167, "longitude": -85.760833, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080074 O31 = self.addSwitch( 'LSVLKYCS', dpid='0000ffffffffff1f', annotations=o31ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080075 o32ann = { "latitude": 34.740833, "longitude": -92.271942, "optical.regens": 2 }
fahad44e62c72015-03-04 14:55:35 -080076 O32 = self.addSwitch( 'LTRKARFR', dpid='0000ffffffffff20', annotations=o32ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080077 o33ann = { "latitude": 25.779167, "longitude": -80.195, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080078 O33 = self.addSwitch( 'MIAMFLAC', dpid='0000ffffffffff21', annotations=o33ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080079 o34ann = { "latitude": 43.037224, "longitude": -87.922501, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080080 O34 = self.addSwitch( 'MILWWIHE', dpid='0000ffffffffff22', annotations=o34ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080081 o35ann = { "latitude": 35.145158, "longitude": -90.048058, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080082 O35 = self.addSwitch( 'MMPHTNMA', dpid='0000ffffffffff23', annotations=o35ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080083 o36ann = { "latitude": 44.977365, "longitude": -93.26718, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080084 O36 = self.addSwitch( 'MPLSMNDT', dpid='0000ffffffffff24', annotations=o36ann, cls=LINCSwitch ) # MPLSMNDT Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -080085 o37ann = { "latitude": 36.853333, "longitude": -76.29, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080086 O37 = self.addSwitch( 'NRFLVABS', dpid='0000ffffffffff25', annotations=o37ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080087 o38ann = { "latitude": 36.163955, "longitude": -86.775558, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080088 O38 = self.addSwitch( 'NSVLTNMT', dpid='0000ffffffffff26', annotations=o38ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080089 o39ann = { "latitude": 29.949806, "longitude": -90.07222, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080090 O39 = self.addSwitch( 'NWORLAMA', dpid='0000ffffffffff27', annotations=o39ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080091 o40ann = { "latitude": 40.734408, "longitude": -74.177978, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080092 O40 = self.addSwitch( 'NWRKNJ02', dpid='0000ffffffffff28', annotations=o40ann, cls=LINCSwitch ) # NWRKNJ02 Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -080093 o41ann = { "latitude": 40.767497, "longitude": -73.989713, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080094 O41 = self.addSwitch( 'NYCMNY54', dpid='0000ffffffffff29', annotations=o41ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080095 o42ann = { "latitude": 35.470833, "longitude": -97.515274, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -080096 O42 = self.addSwitch( 'OKCYOKCE', dpid='0000ffffffffff2a', annotations=o42ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080097 o43ann = { "latitude": 37.805556, "longitude": -122.268889, "optical.regens": 2 }
fahad44e62c72015-03-04 14:55:35 -080098 O43 = self.addSwitch( 'OKLDCA03', dpid='0000ffffffffff2b', annotations=o43ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -080099 o44ann = { "latitude": 41.259167, "longitude":-95.940277, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800100 O44 = self.addSwitch( 'OMAHNENW', dpid='0000ffffffffff2c', annotations=o44ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800101 o45ann = { "latitude": 28.543279, "longitude": -81.377502, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800102 O45 = self.addSwitch( 'ORLDFLMA', dpid='0000ffffffffff2d', annotations=o45ann, cls=LINCSwitch ) # ORLDFLMA Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -0800103 o46ann = { "latitude": 39.946446, "longitude": -75.184139, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800104 O46 = self.addSwitch( 'PHLAPASL', dpid='0000ffffffffff2e', annotations=o46ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800105 o47ann = { "latitude": 33.450361, "longitude": -112.07709, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800106 O47 = self.addSwitch( 'PHNXAZMA', dpid='0000ffffffffff2f', annotations=o47ann, cls=LINCSwitch ) # PHNXAZMA Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -0800107 o48ann = { "latitude":40.441387, "longitude": -79.995552, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800108 O48 = self.addSwitch( 'PITBPADG', dpid='0000ffffffffff30', annotations=o48ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800109 o49ann = { "latitude":41.818889, "longitude": -71.415278, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800110 O49 = self.addSwitch( 'PRVDRIGR', dpid='0000ffffffffff31', annotations=o49ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800111 o50ann = { "latitude": 45.522499, "longitude": -122.678055, "optical.regens": 2 }
fahad44e62c72015-03-04 14:55:35 -0800112 O50 = self.addSwitch( 'PTLDOR62', dpid='0000ffffffffff32', annotations=o50ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800113 o51ann = { "latitude": 37.540752, "longitude": -77.436096, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800114 O51 = self.addSwitch( 'RCMDVAGR', dpid='0000ffffffffff33', annotations=o51ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800115 o52ann = { "latitude": 35.779656, "longitude": -78.640831, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800116 O52 = self.addSwitch( 'RLGHNCMO', dpid='0000ffffffffff34', annotations=o52ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800117 o53ann = { "latitude": 43.157222, "longitude": -77.616389, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800118 O53 = self.addSwitch( 'ROCHNYXA', dpid='0000ffffffffff35', annotations=o53ann, cls=LINCSwitch ) # ROCHNYXA Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -0800119 o54ann = { "latitude": 38.578609, "longitude": -121.487221, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800120 O54 = self.addSwitch( 'SCRMCA01', dpid='0000ffffffffff36', annotations=o54ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800121 o55ann = { "latitude": 41.415278, "longitude": -75.649167, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800122 O55 = self.addSwitch( 'SCTNPA01', dpid='0000ffffffffff37', annotations=o55ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800123 o56ann = { "latitude": 40.767776, "longitude": -111.888336, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800124 O56 = self.addSwitch( 'SLKCUTMA', dpid='0000ffffffffff38', annotations=o56ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800125 o57ann = { "latitude": 29.429445, "longitude": -98.488892, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800126 O57 = self.addSwitch( 'SNANTXCA', dpid='0000ffffffffff39', annotations=o57ann, cls=LINCSwitch ) # SNANTXCA Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -0800127 o58ann = { "latitude": 34.418889, "longitude": -119.7, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800128 O58 = self.addSwitch( 'SNBBCA01', dpid='0000ffffffffff3a', annotations=o58ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800129 o59ann = { "latitude":32.746944, "longitude": -117.158611, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800130 O59 = self.addSwitch( 'SNDGCA02', dpid='0000ffffffffff3b', annotations=o59ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800131 o60ann = { "latitude":37.785143, "longitude": -122.397263, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800132 O60 = self.addSwitch( 'SNFCCA21', dpid='0000ffffffffff3c', annotations=o60ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800133 o61ann = { "latitude": 37.333333, "longitude": -121.892778, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800134 O61 = self.addSwitch( 'SNJSCA02', dpid='0000ffffffffff3d', annotations=o61ann, cls=LINCSwitch ) # SNJSCA02 Connected to packet node
Brian O'Connoreb27c452014-12-07 02:43:58 -0800135 o62ann = { "latitude": 39.795278, "longitude": -89.649444, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800136 O62 = self.addSwitch( 'SPFDILSD', dpid='0000ffffffffff3e', annotations=o62ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800137 o63ann = { "latitude": 47.654724, "longitude": -117.419167, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800138 O63 = self.addSwitch( 'SPKNWA01', dpid='0000ffffffffff3f', annotations=o63ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800139 o64ann = { "latitude": 38.633335, "longitude": -90.215279, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800140 O64 = self.addSwitch( 'STLSMO09', dpid='0000ffffffffff40', annotations=o64ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800141 o65ann = { "latitude": 47.606945, "longitude": -122.333336, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800142 O65 = self.addSwitch( 'STTLWA06', dpid='0000ffffffffff41', annotations=o65ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800143 o66ann = { "latitude": 43.049444, "longitude": -76.1475, "optical.regens": 3 }
fahad44e62c72015-03-04 14:55:35 -0800144 O66 = self.addSwitch( 'SYRCNYSU', dpid='0000ffffffffff42', annotations=o66ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800145 o67ann = { "latitude": 28.0225, "longitude": -82.522778, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800146 O67 = self.addSwitch( 'TAMQFLFN', dpid='0000ffffffffff43', annotations=o67ann, cls=LINCSwitch )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800147 o68ann = { "latitude": 32.224444, "longitude": -110.968333, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800148 O68 = self.addSwitch( 'TCSNAZMA', dpid='0000ffffffffff44', annotations=o68ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800149 o69ann = { "latitude": 30.456389, "longitude": -84.290833, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800150 O69 = self.addSwitch( 'TLHSFLAT', dpid='0000ffffffffff45', annotations=o69ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800151 o70ann = { "latitude": 41.65, "longitude": -83.538056, "optical.regens": 2 }
fahad44e62c72015-03-04 14:55:35 -0800152 O70 = self.addSwitch( 'TOLDOH21', dpid='0000ffffffffff46', annotations=o70ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800153 o71ann = { "latitude": 36.151669, "longitude": -95.985832, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800154 O71 = self.addSwitch( 'TULSOKTB', dpid='0000ffffffffff47', annotations=o71ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800155 o72ann = { "latitude": 38.88306 , "longitude": -77.01028, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800156 O72 = self.addSwitch( 'WASHDCSW', dpid='0000ffffffffff48', annotations=o72ann, cls=LINCSwitch ) # WASHDCSW Connected to packet node
Brian O'Connor025fb442014-12-08 20:02:15 -0800157 o73ann = { "latitude": 39.739167, "longitude": -75.553889, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800158 O73 = self.addSwitch( 'WLMGDE01', dpid='0000ffffffffff49', annotations=o73ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800159 o74ann = { "latitude": 26.709391, "longitude": -80.05278, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800160 O74 = self.addSwitch( 'WPBHFLAN', dpid='0000ffffffffff4a', annotations=o74ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800161 o75ann = { "latitude": 29.57, "longitude": -96.7, "optical.regens": 0 }
fahad44e62c72015-03-04 14:55:35 -0800162 O75 = self.addSwitch( 'AUSTTXGR', dpid='0000ffffffffff4b', annotations=o75ann, cls=LINCSwitch )
Brian O'Connor025fb442014-12-08 20:02:15 -0800163 #o25ann = { "latitude": 29.748333, "longitude": -95.36528, "optical.regens": 0 }
164 #o57ann = { "latitude": 29.429445, "longitude": -98.488892, "optical.regens": 0 }
165
Brian O'Connoreb27c452014-12-07 02:43:58 -0800166
167 # Packet Layer switches
168 ''' # from opticalTest.py
169 SFOR10 = self.addSwitch( 'SFO-R10', dpid='0000ffffffff0001', annotations={"latitude": 37.6, "longitude": -122.3} )
170 LAXR10 = self.addSwitch( 'LAX-R10', dpid='0000ffffffff0002', annotations={ "latitude": 33.9, "longitude": -118.4 } )
171 SDGR10 = self.addSwitch( 'SDG-R10', dpid='0000ffffffff0003', annotations={ "latitude": 32.8, "longitude": -117.1 } )
172 CHGR10 = self.addSwitch( 'CHG-R10', dpid='0000ffffffff0004', annotations={ "latitude": 41.8, "longitude": -87.6 } )
173 JFKR10 = self.addSwitch( 'JFK-R10', dpid='0000ffffffff0005', annotations={ "latitude": 40.8, "longitude": -73.1 } )
174 ATLR10 = self.addSwitch( 'ATL-R10', dpid='0000ffffffff0006', annotations={ "latitude": 33.8, "longitude": -84.1 } )
175 '''
176 WASHDCSWR = self.addSwitch( 'WASHDCSW-R', dpid='0000ffffff000001', annotations={ "latitude": 38.8, "longitude": -77.0 } ) # this switch is O72
177 SNJSCA02R = self.addSwitch( 'SNJSCA02-R', dpid='0000ffffff000002', annotations={ "latitude": 37.3, "longitude": -121.8 } ) # O61
178 SNANTXCAR = self.addSwitch( 'SNANTXCA-R', dpid='0000ffffff000003', annotations={ "latitude": 29.4, "longitude": -98.4 } ) # O57
179 ROCHNYXAR = self.addSwitch( 'ROCHNYXA-R', dpid='0000ffffff000004', annotations={ "latitude": 43.1, "longitude": -77.6 } ) # O53
180 PHNXAZMAR = self.addSwitch( 'PHNXAZMA-R', dpid='0000ffffff000005', annotations={ "latitude": 33.4, "longitude": -112.0 } ) # O47
181 ORLDFLMAR = self.addSwitch( 'ORLDFLMA-R', dpid='0000ffffff000006', annotations={ "latitude": 28.5, "longitude": -81.3 } ) # O45
182 NWRKNJ02R = self.addSwitch( 'NWRKNJ02-R', dpid='0000ffffff000007', annotations={ "latitude": 40.7, "longitude": -74.1 } ) # O40
183 MPLSMNDTR = self.addSwitch( 'MPLSMNDT-R', dpid='0000ffffff000008', annotations={ "latitude": 44.9, "longitude": -93.2 } ) # O36
184 LSANCA03R = self.addSwitch( 'LSANCA03-R', dpid='0000ffffff000009', annotations={ "latitude": 34.1, "longitude": -118.3 } ) # O29
185 DLLSTXTLR = self.addSwitch( 'DLLSTXTL-R', dpid='0000ffffff00000a', annotations={ "latitude": 32.7, "longitude": -96.7 } ) # O18
186 ATLNGATLR = self.addSwitch( 'ATLNGATL-R', dpid='0000ffffff00000b', annotations={ "latitude": 33.7, "longitude": -97.7 } ) # O4
187
188
189
190 # Optical Links between the ROADMs (although Distance is not used; we should keep these for future reference)
fahad44e62c72015-03-04 14:55:35 -0800191 self.addLink( O1, O18, port1=100, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 334, "durable": "true" }, cls=LINCLink ) # ABLNTXRO DLLSTXTL
192 self.addLink( O1, O21, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 768, "durable": "true" }, cls=LINCLink ) # ABLNTXRO ELPSTXMA
193 self.addLink( O3, O16, port1=100, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 265, "durable": "true" }, cls=LINCLink ) # ALBYNYSS CMBRMA01
194 self.addLink( O3, O66, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 239, "durable": "true" }, cls=LINCLink ) # ALBYNYSS SYRCNYSU
195 self.addLink( O2, O18, port1=100, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1134, "durable": "true" }, cls=LINCLink ) # ALBQNMMA DLLSTXTL
196 self.addLink( O2, O19, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 646, "durable": "true" }, cls=LINCLink ) # ALBQNMMA DNVRCOMA
197 self.addLink( O2, O21, port1=102, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 444, "durable": "true" }, cls=LINCLink ) # ALBQNMMA ELPSTXMA
198 self.addLink( O2, O30, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 931, "durable": "true" }, cls=LINCLink ) # ALBQNMMA LSVGNV02
199 self.addLink( O4, O8, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 271, "durable": "true" }, cls=LINCLink ) # ATLNGATL BRHMALMT
200 self.addLink( O4, O12, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 436, "durable": "true" }, cls=LINCLink ) # ATLNGATL CHRLNCCA
201 self.addLink( O4, O26, port1=103, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 566, "durable": "true" }, cls=LINCLink ) # ATLNGATL JCVLFLCL
202 self.addLink( O75, O25, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 283, "durable": "true" }, cls=LINCLink ) # AUSTTXGR HSTNTX01
203 self.addLink( O75, O57, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 141, "durable": "true" }, cls=LINCLink ) # AUSTTXGR SNANTXCA
204 self.addLink( O7, O46, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 170, "durable": "true" }, cls=LINCLink ) # BLTMMDCH PHLAPASL
205 self.addLink( O7, O48, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 378, "durable": "true" }, cls=LINCLink ) # BLTMMDCH PITBPADG
206 self.addLink( O7, O70, port1=103, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 68, "durable": "true" }, cls=LINCLink ) # BLTMMDCH WASHDCSW
207 self.addLink( O10, O25, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 491, "durable": "true" }, cls=LINCLink ) # BTRGLAMA HSTNTX01
208 self.addLink( O10, O39, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 144, "durable": "true" }, cls=LINCLink ) # BTRGLAMA NWORLAMA
209 self.addLink( O6, O9, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 724, "durable": "true" }, cls=LINCLink ) # BLNGMTMA BSMRNDJC
210 self.addLink( O6, O19, port1=102, port2=107, annotations={ "optical.wves": 80, "optical.type": "WDM", "optical.kms": 875, "durable": "true" }, cls=LINCLink ) # BLNGMTMA DNVRCOMA
211 self.addLink( O6, O63, port1=103, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 852, "durable": "true" }, cls=LINCLink ) # BLNGMTMA SPKNWA01
212 self.addLink( O8, O38, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 353, "durable": "true" }, cls=LINCLink ) # BRHMALMT NSVLTNMT
213 self.addLink( O8, O39, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 602, "durable": "true" }, cls=LINCLink ) # BRHMALMT NWORLAMA
214 self.addLink( O9, O36, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 741, "durable": "true" }, cls=LINCLink ) # BSMRNDJC MPLSMNDT
215 self.addLink( O16, O49, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 80, "durable": "true" }, cls=LINCLink ) # CMBRMA01 PRVDRIGR
216 self.addLink( O5, O14, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 333, "durable": "true" }, cls=LINCLink ) # BFLONYFR CLEVOH02
217 self.addLink( O5, O53, port1=104, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 128, "durable": "true" }, cls=LINCLink ) # BFLONYFR ROCHNYXA
218 self.addLink( O13, O26, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 368, "durable": "true" }, cls=LINCLink ) # CHTNSCDT JCVLFLCL
219 self.addLink( O13, O52, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 424, "durable": "true" }, cls=LINCLink ) # CHTNSCDT RLGHNCMO
220 self.addLink( O12, O23, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 160, "durable": "true" }, cls=LINCLink ) # CHRLNCCA GNBONCEU
221 self.addLink( O11, O20, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 458, "durable": "true" }, cls=LINCLink ) # CHCGILCL DTRTMIBA
222 self.addLink( O11, O34, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 156, "durable": "true" }, cls=LINCLink ) # CHCGILCL MILWWIHE
223 self.addLink( O11, O62, port1=103, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 344, "durable": "true" }, cls=LINCLink ) # CHCGILCL SPFDILSD
224 self.addLink( O17, O15, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 194, "durable": "true" }, cls=LINCLink ) # CNCNOHWS CLMBOH11
225 self.addLink( O17, O31, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 172, "durable": "true" }, cls=LINCLink ) # CNCNOHWS LSVLKYCS
226 self.addLink( O17, O72, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 779, "durable": "true" }, cls=LINCLink ) # CNCNOHWS WASHDCSW
227 self.addLink( O14, O15, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 243, "durable": "true" }, cls=LINCLink ) # CLEVOH02 CLMBOH11
228 self.addLink( O14, O70, port1=102, port2=101, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 185, "durable": "true" }, cls=LINCLink ) # CLEVOH02 TOLDOH21
229 self.addLink( O15, O48, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 312, "durable": "true" }, cls=LINCLink ) # CLMBOH11 PITBPADG
230 self.addLink( O18, O25, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 437, "durable": "true" }, cls=LINCLink ) # DLLSTXTL HSTNTX01
231 self.addLink( O18, O32, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 563, "durable": "true" }, cls=LINCLink ) # DLLSTXTL LTRKARFR
232 self.addLink( O18, O42, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 365, "durable": "true" }, cls=LINCLink ) # DLLSTXTL OKCYOKCE
233 self.addLink( O19, O44, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 940, "durable": "true" }, cls=LINCLink ) # DNVRCOMA OMAHNENW
234 self.addLink( O19, O56, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 714, "durable": "true" }, cls=LINCLink ) # DNVRCOMA SLKCUTMA
235 self.addLink( O20, O70, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 103, "durable": "true" }, cls=LINCLink ) # DTRTMIBA TOLDOH21
236 self.addLink( O21, O57, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 969, "durable": "true" }, cls=LINCLink ) # ELPSTXMA SNANTXCA
237 self.addLink( O21, O68, port1=102, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 511, "durable": "true" }, cls=LINCLink ) # ELPSTXMA TCSNAZMA
238 self.addLink( O22, O31, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 505, "durable": "true" }, cls=LINCLink ) # FRSNCA01 LSVGNV02
239 self.addLink( O22, O29, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 396, "durable": "true" }, cls=LINCLink ) # FRSNCA01 LSANCA03
240 self.addLink( O22, O42, port1=103, port2=108, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 298, "durable": "true" }, cls=LINCLink ) # FRSNCA01 OKLDCA03
241 self.addLink( O23, O31, port1=101, port2=108, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 697, "durable": "true" }, cls=LINCLink ) # GNBONCEU LSVLKYCS
242 self.addLink( O23, O52, port1=102, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 130, "durable": "true" }, cls=LINCLink ) # GNBONCEU RLGHNCMO
243 self.addLink( O23, O51, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 319, "durable": "true" }, cls=LINCLink ) # GNBONCEU RCMDVAGR
244 self.addLink( O24, O28, port1=101, port2=108, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 185, "durable": "true" }, cls=LINCLink ) # HRFRCT03 L_Island
245 self.addLink( O24, O49, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 125, "durable": "true" }, cls=LINCLink ) # HRFRCT03 PRVDRIGR
246 self.addLink( O26, O45, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 238, "durable": "true" }, cls=LINCLink ) # JCVLFLCL ORLDFLMA
247 self.addLink( O27, O44, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 320, "durable": "true" }, cls=LINCLink ) # KSCYMO09 OMAHNENW
248 self.addLink( O27, O64, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 457, "durable": "true" }, cls=LINCLink ) # KSCYMO09 STLSMO09
249 self.addLink( O27, O71, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 420, "durable": "true" }, cls=LINCLink ) # KSCYMO09 TULSOKTB
250 self.addLink( O30, O47, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 494, "durable": "true" }, cls=LINCLink ) # LSVGNV02 PHNXAZMA
251 self.addLink( O30, O56, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 701, "durable": "true" }, cls=LINCLink ) # LSVGNV02 SLKCUTMA
252 self.addLink( O32, O35, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 249, "durable": "true" }, cls=LINCLink ) # LTRKARFR MMPHTNMA
253 self.addLink( O28, O41, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 40, "durable": "true" }, cls=LINCLink ) # L_Island NYCMNY54
254 self.addLink( O29, O59, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 212, "durable": "true" }, cls=LINCLink ) # LSANCA03 SNDGCA02
255 self.addLink( O29, O58, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 167, "durable": "true" }, cls=LINCLink ) # LSANCA03 SNBBCA01
256 self.addLink( O31, O38, port1=104, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 298, "durable": "true" }, cls=LINCLink ) # LSVLKYCS NSVLTNMT
257 self.addLink( O31, O64, port1=102, port2=108, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 468, "durable": "true" }, cls=LINCLink ) # LSVLKYCS STLSMO09
258 self.addLink( O35, O38, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 380, "durable": "true" }, cls=LINCLink ) # MMPHTNMA NSVLTNMT
259 self.addLink( O33, O67, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 407, "durable": "true" }, cls=LINCLink ) # MIAMFLAC TAMQFLFN
260 self.addLink( O33, O74, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 125, "durable": "true" }, cls=LINCLink ) # MIAMFLAC WPBHFLAN
261 self.addLink( O34, O36, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 574, "durable": "true" }, cls=LINCLink ) # MILWWIHE MPLSMNDT
262 self.addLink( O36, O44, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 560, "durable": "true" }, cls=LINCLink ) # MPLSMNDT OMAHNENW
263 self.addLink( O39, O69, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 670, "durable": "true" }, cls=LINCLink ) # NWORLAMA TLHSFLAT
264 self.addLink( O41, O40, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 19, "durable": "true" }, cls=LINCLink ) # NYCMNY54 NWRKNJ02
265 self.addLink( O41, O55, port1=102, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 187, "durable": "true" }, cls=LINCLink ) # NYCMNY54 SCTNPA01
266 self.addLink( O41, O73, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 210, "durable": "true" }, cls=LINCLink ) # NYCMNY54 WLMGDE01
267 self.addLink( O40, O46, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 146, "durable": "true" }, cls=LINCLink ) # NWRKNJ02 PHLAPASL
268 self.addLink( O37, O52, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 290, "durable": "true" }, cls=LINCLink ) # NRFLVABS RLGHNCMO
269 self.addLink( O37, O73, port1=102, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 392, "durable": "true" }, cls=LINCLink ) # NRFLVABS WLMGDE01
270 self.addLink( O43, O54, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 131, "durable": "true" }, cls=LINCLink ) # OKLDCA03 SCRMCA01
271 self.addLink( O43, O56, port1=102, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1142, "durable": "true" }, cls=LINCLink ) # OKLDCA03 SLKCUTMA
272 self.addLink( O43, O60, port1=103, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 13, "durable": "true" }, cls=LINCLink ) # OKLDCA03 SNFCCA21
273 self.addLink( O42, O71, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 188, "durable": "true" }, cls=LINCLink ) # OKCYOKCE TULSOKTB
274 self.addLink( O45, O74, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 290, "durable": "true" }, cls=LINCLink ) # ORLDFLMA WPBHFLAN
275 self.addLink( O46, O55, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 201, "durable": "true" }, cls=LINCLink ) # PHLAPASL SCTNPA01
276 self.addLink( O47, O59, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 575, "durable": "true" }, cls=LINCLink ) # PHNXAZMA SNDGCA02
277 self.addLink( O47, O68, port1=102, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 205, "durable": "true" }, cls=LINCLink ) # PHNXAZMA TCSNAZMA
278 self.addLink( O48, O55, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 457, "durable": "true" }, cls=LINCLink ) # PITBPADG SCTNPA01
279 self.addLink( O50, O54, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 934, "durable": "true" }, cls=LINCLink ) # PTLDOR62 SCRMCA01
280 self.addLink( O50, O56, port1=102, port2=108, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 1225, "durable": "true" }, cls=LINCLink ) # PTLDOR62 SLKCUTMA
281 self.addLink( O50, O65, port1=103, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 280, "durable": "true" }, cls=LINCLink ) # PTLDOR62 STTLWA06
282 self.addLink( O51, O72, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 184, "durable": "true" }, cls=LINCLink ) # RCMDVAGR WASHDCSW
283 self.addLink( O53, O66, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 143, "durable": "true" }, cls=LINCLink ) # ROCHNYXA SYRCNYSU
284 self.addLink( O60, O61, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 80., "durable": "true" }, cls=LINCLink ) # SNFCCA21 SNJSCA02
285 self.addLink( O61, O58, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 455, "durable": "true" }, cls=LINCLink ) # SNJSCA02 SNBBCA01
286 self.addLink( O55, O66, port1=101, port2=105, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 223, "durable": "true" }, cls=LINCLink ) # SCTNPA01 SYRCNYSU
287 self.addLink( O65, O63, port1=101, port2=107, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 442, "durable": "true" }, cls=LINCLink ) # STTLWA06 SPKNWA01
288 self.addLink( O62, O64, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 165, "durable": "true" }, cls=LINCLink ) # SPFDILSD STLSMO09
289 self.addLink( O69, O67, port1=101, port2=106, annotations={ "optical.waves": 80, "optical.type": "WDM", "optical.kms": 384, "durable": "true" }, cls=LINCLink ) # TLHSFLAT TAMQFLFN
Brian O'Connoreb27c452014-12-07 02:43:58 -0800290
291 # Packet/Optical cross connect links (this will be the tap interfaces)
fahad44e62c72015-03-04 14:55:35 -0800292 self.addLink( WASHDCSWR, O72, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
293 self.addLink( WASHDCSWR, O72, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
294 self.addLink( WASHDCSWR, O72, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
295 self.addLink( WASHDCSWR, O72, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
296 self.addLink( WASHDCSWR, O72, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
297 self.addLink( SNJSCA02R, O61, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
298 self.addLink( SNJSCA02R, O61, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
299 self.addLink( SNJSCA02R, O61, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
300 self.addLink( SNJSCA02R, O61, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
301 self.addLink( SNJSCA02R, O61, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
302 self.addLink( SNANTXCAR, O57, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
303 self.addLink( SNANTXCAR, O57, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
304 self.addLink( SNANTXCAR, O57, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
305 self.addLink( SNANTXCAR, O57, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
306 self.addLink( SNANTXCAR, O57, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
307 self.addLink( ROCHNYXAR, O53, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
308 self.addLink( ROCHNYXAR, O53, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
309 self.addLink( ROCHNYXAR, O53, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
310 self.addLink( ROCHNYXAR, O53, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
311 self.addLink( ROCHNYXAR, O53, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
312 self.addLink( PHNXAZMAR, O47, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
313 self.addLink( PHNXAZMAR, O47, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
314 self.addLink( PHNXAZMAR, O47, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
315 self.addLink( PHNXAZMAR, O47, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
316 self.addLink( PHNXAZMAR, O47, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
317 self.addLink( ORLDFLMAR, O45, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
318 self.addLink( ORLDFLMAR, O45, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
319 self.addLink( ORLDFLMAR, O45, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
320 self.addLink( ORLDFLMAR, O45, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
321 self.addLink( ORLDFLMAR, O45, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
322 self.addLink( NWRKNJ02R, O40, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
323 self.addLink( NWRKNJ02R, O40, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
324 self.addLink( NWRKNJ02R, O40, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
325 self.addLink( NWRKNJ02R, O40, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
326 self.addLink( NWRKNJ02R, O40, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
327 self.addLink( MPLSMNDTR, O36, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
328 self.addLink( MPLSMNDTR, O36, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
329 self.addLink( MPLSMNDTR, O36, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
330 self.addLink( MPLSMNDTR, O36, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
331 self.addLink( MPLSMNDTR, O36, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
332 self.addLink( LSANCA03R, O29, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
333 self.addLink( LSANCA03R, O29, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
334 self.addLink( LSANCA03R, O29, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
335 self.addLink( LSANCA03R, O29, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
336 self.addLink( LSANCA03R, O29, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
337 self.addLink( DLLSTXTLR, O18, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
338 self.addLink( DLLSTXTLR, O18, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
339 self.addLink( DLLSTXTLR, O18, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
340 self.addLink( DLLSTXTLR, O18, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
341 self.addLink( DLLSTXTLR, O18, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
342 self.addLink( ATLNGATLR, O4, port1=2, port2=10, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
343 self.addLink( ATLNGATLR, O4, port1=3, port2=11, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
344 self.addLink( ATLNGATLR, O4, port1=4, port2=12, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
345 self.addLink( ATLNGATLR, O4, port1=5, port2=13, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
346 self.addLink( ATLNGATLR, O4, port1=6, port2=14, speed1=10000, annotations={ "bandwidth": 100000, "optical.type": "cross-connect", "durable": "true" }, cls=LINCLink )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800347
Brian O'Connoreb27c452014-12-07 02:43:58 -0800348
349 # Attach hosts to the packet layer switches
Brian O'Connor025fb442014-12-08 20:02:15 -0800350 for i in range( 1, 4 ): #don't make this more than 4!!!!!
351 # Create Hosts 1..11
352 h1 = self.addHost( 'h1d%d' % i, ip='10.0.1.%d/16' % i )
353 h2 = self.addHost( 'h2d%d' % i, ip='10.0.2.%d/16' % i )
354 h3 = self.addHost( 'h3d%d' % i, ip='10.0.3.%d/16' % i )
355 h4 = self.addHost( 'h4d%d' % i, ip='10.0.4.%d/16' % i )
356 h5 = self.addHost( 'h5d%d' % i, ip='10.0.5.%d/16' % i )
357 h6 = self.addHost( 'h6d%d' % i, ip='10.0.6.%d/16' % i )
358 h7 = self.addHost( 'h7d%d' % i, ip='10.0.7.%d/16' % i )
359 h8 = self.addHost( 'h8d%d' % i, ip='10.0.8.%d/16' % i )
360 h9 = self.addHost( 'h9d%d' % i, ip='10.0.9.%d/16' % i )
361 h10 = self.addHost( 'h10d%d' % i, ip='10.0.10.%d/16' % i )
362 h11 = self.addHost( 'h11d%d' % i, ip='10.0.11.%d/16' % i )
363
364 port = i + 6
365 self.addLink( SNJSCA02R, h1, port1=port )
366 self.addLink( SNANTXCAR, h2, port1=port )
367 self.addLink( ROCHNYXAR, h3, port1=port )
368 self.addLink( PHNXAZMAR, h4, port1=port )
369 self.addLink( ORLDFLMAR, h5, port1=port )
370 self.addLink( NWRKNJ02R, h6, port1=port )
371 self.addLink( MPLSMNDTR, h7, port1=port )
372 self.addLink( LSANCA03R, h8, port1=port )
373 self.addLink( DLLSTXTLR, h9, port1=port )
374 self.addLink( ATLNGATLR, h10, port1=port )
375 self.addLink( WASHDCSWR, h11, port1=port )
Brian O'Connoreb27c452014-12-07 02:43:58 -0800376
377if __name__ == '__main__':
378 import sys
379 if len( sys.argv ) >= 2:
380 controllers = sys.argv[1:]
381 else:
fahad44e62c72015-03-04 14:55:35 -0800382 print 'Usage: sudo -E python opticalTestBig.py (<Controller IP>)+'
Brian O'Connoreb27c452014-12-07 02:43:58 -0800383 print 'Using localhost...\n'
384 controllers = [ '127.0.0.1' ]
385
386 setLogLevel( 'info' )
387 net = MininetOE( topo=BigOpticalTopo(), controller=None, autoSetMacs=True )
388 net.addControllers( controllers )
389 net.start()
390 CLI( net )
391 net.stop()