Show host provider in CLI
Change-Id: I2094197c3a684c67daa3801ac31680406abcb4c8
diff --git a/cli/src/main/java/org/onosproject/cli/net/HostsListCommand.java b/cli/src/main/java/org/onosproject/cli/net/HostsListCommand.java
index a8ceea6..2143e53 100644
--- a/cli/src/main/java/org/onosproject/cli/net/HostsListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/HostsListCommand.java
@@ -38,7 +38,7 @@
public class HostsListCommand extends AbstractShellCommand {
private static final String FMT =
- "id=%s, mac=%s, locations=%s, vlan=%s, ip(s)=%s%s, configured=%s";
+ "id=%s, mac=%s, locations=%s, vlan=%s, ip(s)=%s%s, provider=%s:%s, configured=%s";
private static final String FMT_SHORT =
"id=%s, mac=%s, locations=%s, vlan=%s, ip(s)=%s";
@@ -94,6 +94,7 @@
print(FMT, host.id(), host.mac(),
host.locations(),
host.vlan(), host.ipAddresses(), annotations(host.annotations()),
+ host.providerId().scheme(), host.providerId().id(),
host.configured());
}
}