Convert yangtools binding APIs to mdsal bindings
[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   <reference id="BGPExtensionContext" interface="org.opendaylight.protocol.bgp.parser.spi.BGPExtensionConsumerContext"/>
6   <reference id="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
7   <reference id="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
8
9   <bean id="BGPDispatcher" class="org.opendaylight.protocol.bgp.rib.impl.BGPDispatcherImpl">
10     <argument>
11       <bean factory-ref="BGPExtensionContext" factory-method="getMessageRegistry"/>
12     </argument>
13     <argument ref="globalBossGroup"/>
14     <argument ref="globalWorkerGroup"/>
15   </bean>
16
17   <service ref="BGPDispatcher" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BGPDispatcher">
18     <!-- The following service properties specify the config system module and instance that correspond to
19          this OSGi service which enables the config system module to be restarted when this blueprint
20          container is restarted. -->
21     <service-properties>
22       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl"/>
23       <entry key="config-module-name" value="bgp-dispatcher-impl"/>
24       <entry key="config-instance-name" value="global-bgp-dispatcher"/>
25     </service-properties>
26   </service>
27
28   <bean id="BGPPeerRegistry" class="org.opendaylight.protocol.bgp.rib.impl.StrictBGPPeerRegistry"
29           factory-method="instance"/>
30
31   <service ref="BGPPeerRegistry" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BGPPeerRegistry"
32           odl:type="default">
33     <!-- The following service properties specify the config system module and instance that correspond to
34          this OSGi service which enables the config system module to be restarted when this blueprint
35          container is restarted. -->
36     <service-properties>
37       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl"/>
38       <entry key="config-module-name" value="strict-bgp-peer-registry"/>
39       <entry key="config-instance-name" value="global-bgp-peer-registry"/>
40     </service-properties>
41   </service>
42
43   <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="pingpong"/>
44   <reference id="globalBgpExtensions" interface="org.opendaylight.protocol.bgp.rib.spi.RIBExtensionConsumerContext"/>
45   <reference id="codecTreeFactory" interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory"/>
46   <reference id="domDataBroker" interface="org.opendaylight.controller.md.sal.dom.api.DOMDataBroker"/>
47   <reference id="bgpOpenConfigMappingService" interface="org.opendaylight.protocol.bgp.openconfig.spi.BGPOpenConfigMappingService"/>
48   <reference id="schemaService" interface="org.opendaylight.controller.sal.core.api.model.SchemaService"/>
49
50   <bean id="bgpDeployer" class="org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl">
51     <argument value="global-bgp"/>
52     <argument ref="blueprintContainer"/>
53     <argument ref="blueprintBundleContext"/>
54     <argument ref="dataBroker"/>
55     <argument ref="bgpOpenConfigMappingService"/>
56   </bean>
57
58   <service ref="bgpDeployer" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BgpDeployer"/>
59
60   <bean id="ribImpl" class="org.opendaylight.protocol.bgp.rib.impl.config.RibImpl" scope="prototype">
61     <argument ref="globalBgpExtensions"/>
62     <argument ref="BGPDispatcher"/>
63     <argument ref="codecTreeFactory"/>
64     <argument ref="domDataBroker"/>
65     <argument ref="schemaService"/>
66   </bean>
67
68 </blueprint>