Beispiel #1
0
    def start(self):
        '''Load POX controller components'''
        Node.start(self)

        # remove self from networkx graph (topology)
        fscore().topology.remove_node(self.name)
        for component in self.components:
            self.logger.debug("Starting OF Controller Component {}".format(component))
            load_pox_component(component)
Beispiel #2
0
    def start(self):
        '''Load POX controller components'''
        Node.start(self)

        # remove self from networkx graph (topology)
        fscore().topology.remove_node(self.name)

        for component in self.components:
            self.logger.debug("Starting OF Controller Component {}".format(component))
            load_pox_component(component)
Beispiel #3
0
    def start(self):
        """Load POX controller components"""
        Node.start(self)

        # remove self from networkx graph (topology)
        fscore().topology.remove_node(self.name)

        # FIXME: Check the type of controller and patch based on that...
        # Eventhought it works for pox, it will be difficult for ODL
        if self.conType == "POX" or self.conType == "RYU":
            self.logger.info("Patching {} integration with fs".format(self.conType))
            for component in self.components:
                self.logger.debug("Starting OF Controller Component {}".format(component))
                load_pox_component(component)
        elif self.conType == "ODL":
            self.logger.info("Patching ODL integration with fs")
            for component in self.components:
                self.logger.debug("Starting OF Controller Component {}".format(component))
                load_odl_component(component)
        else:
            raise Exception("Other controller types not supported as of now.")
Beispiel #4
0
 def start(self):
     Node.start(self)
     fscore().after(1, "openflow-switch-table-ager" + str(self.name), self.table_ager)
Beispiel #5
0
 def start(self):
     Node.start(self)
     fscore().after(0.010, "arp {}".format(self.name), self.send_gratuitous_arps)
     self.logger.debug("OF Switch Startup: {}".format(dpid_to_str(self.pox_switch.dpid)))
     for p in self.ports:
         self.logger.debug("\tSwitch port {}: {}, {}".format(p, self.ports[p], self.pox_switch.ports[p].show()))
Beispiel #6
0
 def start(self):
     Node.start(self)
     fscore().after(1, "openflow-switch-table-ager" + str(self.name),
                    self.table_ager)
Beispiel #7
0
 def start(self):
     Node.start(self)
     fscore().after(0.010, "arp {}".format(self.name), self.send_gratuitous_arps)
     self.logger.debug("OF Switch Startup: {}".format(dpid_to_str(self.pox_switch.dpid)))
     for p in self.ports:
         self.logger.debug("\tSwitch port {}: {}, {}".format(p, self.ports[p], self.pox_switch.ports[p].show()))