Example #1
0
 def _make_router(self, minimum_radix):
   if minimum_radix <= 36:
     return fabric.Router(36)
   elif minimum_radix <= 648:
     return fabric.Router(36)
   else:
     assert minimum_radix <= 648, 'EDR only supports 36 and 648 port routers'
Example #2
0
 def _make_router(self, minimum_radix):
   assert minimum_radix <= 32, 'Eth40 only supports 32 port routers'
   return fabric.Router(32)
Example #3
0
 def _make_router(self, minimum_radix):
     assert minimum_radix <= 64, 'Eth100 only supports 64 port routers'
     return fabric.Router(64)
Example #4
0
 def _make_router(self, minimum_radix):
     return fabric.Router(minimum_radix)
Example #5
0
 def _make_router(self, minimum_radix):
     assert minimum_radix <= 48, 'OPA1 only supports 48 port routers'
     return fabric.Router(48)