Esempio n. 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)
Esempio n. 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)
Esempio n. 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.")