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">
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"/>
9 <bean id="BGPDispatcher" class="org.opendaylight.protocol.bgp.rib.impl.BGPDispatcherImpl">
11 <bean factory-ref="BGPExtensionContext" factory-method="getMessageRegistry"/>
13 <argument ref="globalBossGroup"/>
14 <argument ref="globalWorkerGroup"/>
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. -->
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"/>
28 <bean id="BGPPeerRegistry" class="org.opendaylight.protocol.bgp.rib.impl.StrictBGPPeerRegistry"
29 factory-method="instance"/>
31 <service ref="BGPPeerRegistry" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BGPPeerRegistry"
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. -->
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"/>
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"/>
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"/>
58 <service ref="bgpDeployer" interface="org.opendaylight.protocol.bgp.rib.impl.spi.BgpDeployer"/>
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"/>