TAPI Netconf Topology Listener
[transportpce.git] / tapi / src / main / resources / OSGI-INF / blueprint / tapi-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2018 Orange and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9
10 Author: Gilles Thouenon <gilles.thouenon@orange.com>
11 -->
12 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
13   xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
14   odl:use-default-for-reference-types="true">
15
16     <reference id="dataBroker"
17           interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
18
19     <reference id="deviceTransactionManager"
20                interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
21
22     <reference id="rpcProviderService"
23           interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
24
25     <reference id="serviceHandlerService"
26           interface="org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.OrgOpenroadmServiceService" />
27
28     <reference id="networkTransactionImpl"
29           interface="org.opendaylight.transportpce.common.network.NetworkTransactionService" />
30
31     <reference id="serviceDatastoreOperation"
32                interface="org.opendaylight.transportpce.servicehandler.service.ServiceDataStoreOperations" />
33
34     <bean id="tapiListener"
35           class="org.opendaylight.transportpce.tapi.utils.TapiListener">
36     </bean>
37
38     <bean id="tapiNetworkModelService" class="org.opendaylight.transportpce.tapi.topology.TapiNetworkModelServiceImpl">
39         <argument ref="tapilinkDiscoveryImpl" />
40         <argument ref="networkTransactionImpl" />
41     </bean>
42
43     <bean id="tapiNetconfTopologyListener" class="org.opendaylight.transportpce.tapi.topology.TapiNetconfTopologyListener">
44         <argument ref="tapiNetworkModelService" />
45     </bean>
46
47     <bean id="tapiProvider"
48           class="org.opendaylight.transportpce.tapi.impl.TapiProvider"
49           init-method="init" destroy-method="close">
50         <argument ref="dataBroker" />
51         <argument ref="rpcProviderService" />
52         <argument ref="serviceHandlerService" />
53         <argument ref="serviceDatastoreOperation" />
54         <argument ref="tapiListener" />
55         <argument ref="networkTransactionImpl" />
56         <argument ref="tapiNetconfTopologyListener" />
57         <argument ref="tapiPortMappingListener" />
58     </bean>
59
60     <bean id="tapiPortMappingListener" class="org.opendaylight.transportpce.tapi.topology.TapiPortMappingListener">
61         <argument ref="tapiNetworkModelService" />
62     </bean>
63
64     <bean id="tapilinkDiscoveryImpl" class="org.opendaylight.transportpce.tapi.R2RTapiLinkDiscovery">
65         <argument ref="dataBroker" />
66         <argument ref="deviceTransactionManager" />
67     </bean>
68
69     <service ref="tapiNetworkModelService" interface="org.opendaylight.transportpce.tapi.topology.TapiNetworkModelService" />
70
71 </blueprint>