Ejemplo n.º 1
0
    def __init__(self, service_plugin):
        super(BaGPipeBGPVPNDriver, self).__init__(service_plugin)

        self.agent_rpc = rpc_client.BGPVPNAgentNotifyApi()

        registry.subscribe(self.registry_port_updated, resources.PORT,
                           events.AFTER_UPDATE)

        # we need to subscribe to before_delete events, because
        # on after_delete events the port is already removed from the db
        # and we can't retrieve the binding:host_id information (which
        # is not passed in the event either)
        registry.subscribe(self.registry_port_deleted, resources.PORT,
                           events.BEFORE_DELETE)
Ejemplo n.º 2
0
    def __init__(self, service_plugin):
        super(BaGPipeBGPVPNDriver, self).__init__(service_plugin)

        self.agent_rpc = rpc_client.BGPVPNAgentNotifyApi()

        registry.subscribe(self.registry_port_updated, resources.PORT,
                           events.AFTER_UPDATE)

        registry.subscribe(self.registry_port_deleted, resources.PORT,
                           events.AFTER_DELETE)

        registry.subscribe(self.registry_router_interface_created,
                           resources.ROUTER_INTERFACE, events.AFTER_CREATE)

        registry.subscribe(self.registry_router_interface_deleted,
                           resources.ROUTER_INTERFACE, events.AFTER_DELETE)
Ejemplo n.º 3
0
    def __init__(self, service_plugin):
        super(DragonflowBGPVPNDriver, self).__init__(service_plugin)

        self.agent_rpc = rpc_client.BGPVPNAgentNotifyApi()
        self.host = "127.0.0.1"
        self.port = 8082
        self.client_name = "HTTP client base"

        registry.subscribe(self.registry_port_created, resources.PORT,
                           events.AFTER_CREATE)

        registry.subscribe(self.registry_port_deleted, resources.PORT,
                           events.AFTER_DELETE)

        registry.subscribe(self.registry_router_interface_created,
                           resources.ROUTER_INTERFACE, events.AFTER_CREATE)

        registry.subscribe(self.registry_router_interface_deleted,
                           resources.ROUTER_INTERFACE, events.AFTER_DELETE)
Ejemplo n.º 4
0
    def __init__(self, service_plugin):
        super(BaGPipeBGPVPNDriver, self).__init__(service_plugin)

        self.agent_rpc = rpc_client.BGPVPNAgentNotifyApi()

        registry.subscribe(self.registry_port_updated, resources.PORT,
                           events.AFTER_UPDATE)

        # we need to subscribe to before_delete events, because
        # on after_delete events the port is already removed from the db
        # and we can't retrieve the binding:host_id information (which
        # is not passed in the event either)
        registry.subscribe(self.registry_port_deleted, resources.PORT,
                           events.BEFORE_DELETE)

        # REVISIT(tmorin): if/when port ABORT_DELETE events are implemented
        #  we will have to revisit the issue, so that the action done after
        #  BEFORE_DELETE is reverted if needed (or a different solution)

        registry.subscribe(self.registry_port_created, resources.PORT,
                           events.AFTER_CREATE)
Ejemplo n.º 5
0
    def __init__(self, service_plugin):
        super(BaGPipeBGPVPNDriver, self).__init__(service_plugin)

        self.agent_rpc = rpc_client.BGPVPNAgentNotifyApi()