driversList Command doesn't display the driver info if it doestn't have a parent Driver
Change-Id: I59c7b47385aaa4d82fc17ec87827236c8a9a7f6d
diff --git a/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java b/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
index 2b884bc..d18a2db 100644
--- a/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/DriversListCommand.java
@@ -76,6 +76,12 @@
driver.implementation(b).getCanonicalName()));
driver.properties().forEach((k, v) -> print(FMT_P, k, v));
});
+ } else if (driver.parents() == null) {
+ print(FMT, driver.name(), "none", driver.manufacturer(),
+ driver.hwVersion(), driver.swVersion());
+ driver.behaviours().forEach(b -> print(FMT_B, b.getCanonicalName(),
+ driver.implementation(b).getCanonicalName()));
+ driver.properties().forEach((k, v) -> print(FMT_P, k, v));
}
}