Exemplo n.º 1
0
 def __init__(self, conf={}):
     self.conf = DEFAULT_CONF
     self.conf.update(conf)
     BaseTopo.__init__(self, self.conf)
     self.topo = NonBlocking(num_hosts=self.conf["num_hosts"],
                             switch_id=self.switch_id)
     self._create_network()
Exemplo n.º 2
0
 def __init__(self, conf={}):
     self.conf = DEFAULT_CONF
     self.conf.update(conf)
     BaseTopo.__init__(self, self.conf)
     self.name = "fattree"
     self.topo = Fattree(fanout=self.conf["fanout"],
                         density=self.conf["density"],
                         switch_id=self.switch_id)
     self._create_network()
Exemplo n.º 3
0
    def __init__(self, conf={}):
        self.conf = DEFAULT_CONF
        self.conf.update(conf)
        BaseTopo.__init__(self, self.conf)
        self.name = "dumbbell"

        # Topo initiation
        self.switch_w = None
        self.switch_e = None
        self.hosts_w = []
        self.hosts_e = []
Exemplo n.º 4
0
    def __init__(self, conf={}):
        self.conf = DEFAULT_CONF
        self.conf.update(conf)
        BaseTopo.__init__(self, self.conf)
        self.name = "fattree"

        # Init Topo
        self.fanout = self.conf["fanout"]
        # check if fanout is valid
        if self.fanout not in [4, 8]:
            log.error("Invalid fanout!")
            return -1
        self.density = self.conf["num_hosts"] / (self.fanout**2 / 2)
        self.core_switch_num = (self.fanout / 2)**2
        self.agg_switch_num = self.fanout**2 / 2
        self.edge_switch_num = self.fanout**2 / 2
        self.core_switches = []
        self.agg_switches = []
        self.edge_switches = []
Exemplo n.º 5
0
 def __init__(self, conf={}):
     self.conf = DEFAULT_CONF
     self.conf.update(conf)
     BaseTopo.__init__(self, self.conf)
     self.name = "dumbbell"
     self.core_switch = None
Exemplo n.º 6
0
 def __init__(self, options):
     BaseTopo.__init__(self, options)
     self.topo = Fattree(k=4, density=2, switch_id=self.switch_id)
     self.net = self._create_network()
     self.is_ecmp = True
     self._configure_network()
Exemplo n.º 7
0
 def __init__(self, options):
     BaseTopo.__init__(self, options)
     self.topo = DumbbellTopo(self.NUM_HOSTS, self.switch_id)
     self.net = self._create_network()
     self._configure_network()
Exemplo n.º 8
0
 def __init__(self, options):
     BaseTopo.__init__(self, options)
     self.topo = NonBlocking(k=4, switch_id=self.switch_id)
     self.net = self._create_network()
     self._configure_network()