Migrate netconf-console to Karaf 4 way 11/79611/2
authorJakub Morvay <jmorvay@frinx.io>
Thu, 17 Jan 2019 11:06:09 +0000 (12:06 +0100)
committerJakub Morvay <jmorvay@frinx.io>
Thu, 17 Jan 2019 13:01:53 +0000 (14:01 +0100)
commita056f6b00b493c5c102372668649a5d1507345a9
tree1c3583a6445d9a1b55db5719b70f8f42084bd4ea
parentd9cb872f7dec043ec40e5a800340f661f9bdd5ff
Migrate netconf-console to Karaf 4 way

Some migration of netconf-console commands has been already done. We
updated commands to use new Karaf shell-related APIs, but we are still
using blueprint XML to create and register these commands.

This does not work with the new API. Avoid using blueprint, use new
available annotations and refactor commands to be more Karaf 4
compliant.

See https://karaf.apache.org/manual/latest/update-notes.html#_commands
for more detail.

JIRA: NETCONF-599
Change-Id: Ib43ecf01e168f77528dadc6a9224dbf70fba4606
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
netconf/netconf-console/pom.xml
netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfConnectDeviceCommand.java
netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfDisconnectDeviceCommand.java
netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfListDevicesCommand.java
netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfShowDeviceCommand.java
netconf/netconf-console/src/main/java/org/opendaylight/netconf/console/commands/NetconfUpdateDeviceCommand.java
netconf/netconf-console/src/main/resources/org/opendaylight/blueprint/netconf-command.xml