Initiate the OpenDaylight env
[transportpce.git] / cli / src / main / resources / org / opendaylight / blueprint / cli-blueprint.xml
diff --git a/cli/src/main/resources/org/opendaylight/blueprint/cli-blueprint.xml b/cli/src/main/resources/org/opendaylight/blueprint/cli-blueprint.xml
new file mode 100644 (file)
index 0000000..c8091c7
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © 2016 Orange and others. All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+  xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+  odl:use-default-for-reference-types="true">
+
+  <reference id="dataBroker"
+    interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
+    odl:type="default" />
+
+  <bean id="cliCommandsImpl" class="org.opendaylight.transportpce.cli.impl.TransportpceCliCommandsImpl">
+    <argument ref="dataBroker" />
+  </bean>
+  <service ref="cliCommandsImpl" odl:type="default"
+    interface="org.opendaylight.transportpce.cli.api.TransportpceCliCommands" />
+
+    <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
+        <command name="test-command">
+            <action class="org.opendaylight.transportpce.cli.commands.TransportpceCliTestCommand">
+                <argument ref="cliCommandsImpl"/>
+            </action>
+        </command>
+    </command-bundle>
+</blueprint>