e5c43440c2a81bbefa559a516eb10ec46e04350b
[bgpcep.git] / bgp / rib-impl / src / main / resources / org / opendaylight / blueprint / bgp-rib.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
4
5   <bean id="RIBActivator" class="org.opendaylight.protocol.bgp.rib.impl.RIBActivator"/>
6
7   <service ref="RIBActivator" interface="org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderActivator"
8           odl:type="org.opendaylight.protocol.bgp.rib.impl.RIBActivator"/>
9
10   <reference id="BGPExtensionContext" interface="org.opendaylight.protocol.bgp.parser.spi.BGPExtensionConsumerContext"/>
11   <reference id="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
12   <reference id="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
13
14   <bean id="BGPDispatcher" class="org.opendaylight.protocol.bgp.rib.impl.BGPDispatcherImpl">
15     <argument>
16       <bean factory-ref="BGPExtensionContext" factory-method="getMessageRegistry"/>
17     </argument>
18     <argument ref="globalBossGroup"/>
19     <argument ref="globalWorkerGroup"/>
20   </bean>
21
22   <service ref="BGPDispatcher" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BGPDispatcher">
23     <!-- The following service properties specify the config system module and instance that correspond to
24          this OSGi service which enables the config system module to be restarted when this blueprint
25          container is restarted. -->
26     <service-properties>
27       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl"/>
28       <entry key="config-module-name" value="bgp-dispatcher-impl"/>
29       <entry key="config-instance-name" value="global-bgp-dispatcher"/>
30     </service-properties>
31   </service>
32
33   <bean id="BGPPeerRegistry" class="org.opendaylight.protocol.bgp.rib.impl.StrictBGPPeerRegistry"
34           factory-method="instance"/>
35
36   <service ref="BGPPeerRegistry" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BGPPeerRegistry"
37           odl:type="default">
38     <!-- The following service properties specify the config system module and instance that correspond to
39          this OSGi service which enables the config system module to be restarted when this blueprint
40          container is restarted. -->
41     <service-properties>
42       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl"/>
43       <entry key="config-module-name" value="strict-bgp-peer-registry"/>
44       <entry key="config-instance-name" value="global-bgp-peer-registry"/>
45     </service-properties>
46   </service>
47 </blueprint>