Switch to MD-SAL APIs
[openflowplugin.git] / applications / southbound-cli / src / main / java / org / opendaylight / openflowplugin / applications / southboundcli / cli / GetAllNodesCommandProvider.java
index a3c06c6acb4b5788c1dd170e7ea2e8f24ca9df05..5517d9ffbc62b887638e5a73308876afaacbda1f 100644 (file)
@@ -11,7 +11,7 @@ import java.util.Formatter;
 import java.util.List;
 import org.apache.felix.gogo.commands.Command;
 import org.apache.karaf.shell.console.OsgiCommandSupport;
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
+import org.opendaylight.mdsal.binding.api.DataBroker;
 import org.opendaylight.openflowplugin.applications.southboundcli.util.OFNode;
 import org.opendaylight.openflowplugin.applications.southboundcli.util.ShellUtil;
 import org.slf4j.Logger;
@@ -32,7 +32,7 @@ public class GetAllNodesCommandProvider extends OsgiCommandSupport {
         List<OFNode> ofNodeList = ShellUtil.getAllNodes(dataBroker);
         if (ofNodeList.isEmpty()) {
             session.getConsole().println("No node is connected yet");
-        } else if (ofNodeList != null && ofNodeList.size() > 0) {
+        } else {
             StringBuilder stringBuilder = new StringBuilder();
             Formatter formatter = new Formatter(stringBuilder);
             session.getConsole().println("Number of nodes: " + ofNodeList.size());