Eliminate XmlUtil.createElement(Document, String)
[netconf.git] / netconf / netconf-console / src / main / resources / org / opendaylight / blueprint / netconf-command.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 Inocybe Technologies Inc. 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            odl:use-default-for-reference-types="true">
12
13     <reference id="dataBroker"
14                interface="org.opendaylight.mdsal.binding.api.DataBroker"
15                odl:type="default"/>
16
17     <bean id="netconfCommandsImpl" class="org.opendaylight.netconf.console.impl.NetconfCommandsImpl">
18         <argument ref="dataBroker"/>
19     </bean>
20     <service ref="netconfCommandsImpl" interface="org.opendaylight.netconf.console.api.NetconfCommands" />
21
22     <!--Karaf CLI-->
23
24     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
25         <command name="netconf:connect-device">
26             <action class="org.opendaylight.netconf.console.commands.NetconfConnectDeviceCommand">
27                 <argument ref="netconfCommandsImpl"/>
28             </action>
29         </command>
30         <command name="netconf:list-devices">
31             <action class="org.opendaylight.netconf.console.commands.NetconfListDevicesCommand">
32                 <argument ref="netconfCommandsImpl"/>
33             </action>
34         </command>
35         <command name="netconf:show-device">
36             <action class="org.opendaylight.netconf.console.commands.NetconfShowDeviceCommand">
37                 <argument ref="netconfCommandsImpl"/>
38             </action>
39         </command>
40         <command name="netconf:disconnect-device">
41             <action class="org.opendaylight.netconf.console.commands.NetconfDisconnectDeviceCommand">
42                 <argument ref="netconfCommandsImpl"/>
43             </action>
44         </command>
45         <command name="netconf:update-device">
46             <action class="org.opendaylight.netconf.console.commands.NetconfUpdateDeviceCommand">
47                 <argument ref="netconfCommandsImpl"/>
48             </action>
49         </command>
50     </command-bundle>
51
52 </blueprint>