1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10 xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
12 <!-- Obtains the specific list of PCEPCapability OSGi services announced via
13 META-INF/services/org.opendaylight.protocol.pcep.PCEPCapability resources.
15 <odl:specific-reference-list id="pcepCapabilities" interface="org.opendaylight.protocol.pcep.PCEPCapability"/>
17 <odl:clustered-app-config id="pcepSessionConfig"
18 binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.app.config.rev160707.PcepSessionConfig"/>
20 <bean id="sessionProposalFactory" class="org.opendaylight.protocol.pcep.impl.BasePCEPSessionProposalFactory">
22 <bean factory-ref="pcepSessionConfig" factory-method="getDeadTimerValue"/>
25 <bean factory-ref="pcepSessionConfig" factory-method="getKeepAliveTimerValue"/>
27 <argument ref="pcepCapabilities"/>
30 <!-- PCEPDispatcher -->
32 <reference id="pcepExtensionContext" interface="org.opendaylight.protocol.pcep.spi.PCEPExtensionConsumerContext"/>
33 <reference id="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
34 <reference id="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
36 <odl:clustered-app-config id="pcepDispatcherConfig"
37 binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.pcep.app.config.rev160707.PcepDispatcherConfig"/>
39 <bean id="pcepSessionNegotiatorFactory" class="org.opendaylight.protocol.pcep.impl.DefaultPCEPSessionNegotiatorFactory">
40 <argument ref="sessionProposalFactory"/>
41 <argument ref="pcepDispatcherConfig"/>
44 <bean id="pcepDispatcher" class="org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl">
46 <bean factory-ref="pcepExtensionContext" factory-method="getMessageHandlerRegistry"/>
48 <argument ref="pcepSessionNegotiatorFactory"/>
49 <argument ref="globalBossGroup"/>
50 <argument ref="globalWorkerGroup"/>
53 <service ref="pcepDispatcher" interface="org.opendaylight.protocol.pcep.PCEPDispatcher"/>