mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
Show host provider in CLI
Change-Id: I2094197c3a684c67daa3801ac31680406abcb4c8
This commit is contained in:
parent
c760f38c2f
commit
4e55301dbc
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user