770ec7c74741529cf921c91d1ed2d82d1bceea31
[netvirt.git] / vpnservice / qosservice / impl / src / main / resources / org / opendaylight / blueprint / qosservice.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><!--
3 Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
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
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="dataBroker"
15                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
16                odl:type="default" />
17     <reference id="iMdsalApiManager"
18                interface="org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager" />
19     <reference id="iNeutronVpnManager"
20                interface="org.opendaylight.netvirt.neutronvpn.interfaces.INeutronVpnManager" />
21     <odl:rpc-service id="odlInterfaceRpcService"
22                  interface="org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService" />
23
24     <odl:clustered-app-config id="qosalertConfig"
25                               binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfig"
26                               default-config-file-name="netvirt-qosservice-config.xml"
27                               update-strategy="none">
28     </odl:clustered-app-config>
29
30     <odl:rpc-service id="opendaylightDirectStatisticsService"
31                      interface="org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.OpendaylightDirectStatisticsService" />
32
33
34     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
35
36         <command>
37             <action class="org.opendaylight.netvirt.qosservice.QosAlertEnableCLI">
38                 <property name="qosAlertManager" ref="qosAlertManager"/>
39             </action>
40         </command>
41         <command>
42             <action class="org.opendaylight.netvirt.qosservice.QosAlertThresholdCLI">
43                 <property name="qosAlertManager" ref="qosAlertManager"/>
44             </action>
45         </command>
46         <command>
47             <action class="org.opendaylight.netvirt.qosservice.QosAlertPollIntervalCLI">
48                 <property name="qosAlertManager" ref="qosAlertManager"/>
49             </action>
50         </command>
51
52     </command-bundle>
53
54     <bean id="qosAlertGenerator" class="org.opendaylight.netvirt.qosservice.QosAlertGenerator">
55       <cm:managed-properties persistent-id="org.opendaylight.netvirt.qosservice"
56                            update-strategy="component-managed" update-method="update"/>
57     </bean>
58
59 </blueprint>