* This is an example class. The class name can be renamed to match the command implementation that it will invoke.
* Specify command details by updating the fields in the Command annotation below.
*/
-@Command(name = "test-command", scope = "add the scope of the command, usually project name", description = "add a description for the command")
+@Command(name = "test-command",
+ scope = "add the scope of the command, usually project name",
+ description = "add a description for the command")
public class TransportpceCliTestCommand extends AbstractAction {
private static final Logger LOG = LoggerFactory.getLogger(TransportpceCliTestCommand.class);
final String testMessage = (String) service.testCommand(testArgument);
return testMessage;
}
-}
\ No newline at end of file
+}
package org.opendaylight.transportpce.cli.impl;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.transportpce.cli.api.TransportpceCliCommands;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.opendaylight.transportpce.cli.api.TransportpceCliCommands;
public class TransportpceCliCommandsImpl implements TransportpceCliCommands {
public Object testCommand(Object testArgument) {
return "This is a test implementation of test-command";
}
-}
\ No newline at end of file
+}
<feature version='${mdsal.version}'>odl-mdsal-broker</feature>
<feature version='${netconf.version}'>odl-netconf-all</feature>
<feature version='${netconf.version}'>odl-netconf-connector-all</feature>
+ <feature version='${netconf.version}'>odl-netconf-console</feature>
<feature version='${project.version}'>odl-transportpce-api</feature>
<feature version='${project.version}'>odl-transportpce-ordmodels</feature>
<bundle>mvn:org.opendaylight.transportpce/transportpce-impl/{{VERSION}}</bundle>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>karaf-parent</artifactId>
<version>1.8.0-SNAPSHOT</version>
+ <relativePath/>
</parent>
<groupId>org.opendaylight.transportpce</groupId>
<artifactId>transportpce-karaf</artifactId>
<version>0.1.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
+ <packaging>pom</packaging>
<properties>
<karaf.localFeature>odl-transportpce-ui</karaf.localFeature>