Show host provider in CLI

Change-Id: I2094197c3a684c67daa3801ac31680406abcb4c8
This commit is contained in:
Charles Chan 2017-07-24 21:13:01 -07:00 committed by Charles Chan
parent c760f38c2f
commit 4e55301dbc

View File

@ -38,7 +38,7 @@ import static com.google.common.collect.Lists.newArrayList;
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 @@ public class HostsListCommand extends AbstractShellCommand {
print(FMT, host.id(), host.mac(),
host.locations(),
host.vlan(), host.ipAddresses(), annotations(host.annotations()),
host.providerId().scheme(), host.providerId().id(),
host.configured());
}
}