mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 10:21:52 +02:00
Show chassisId in CLI and fix UI string
Change-Id: Iec755760d7c8a3a52502768f903d867907709543
This commit is contained in:
parent
d9af042fb1
commit
ab7d9abd45
@ -41,7 +41,8 @@ import static com.google.common.collect.Lists.newArrayList;
|
||||
public class DevicesListCommand extends AbstractShellCommand {
|
||||
|
||||
private static final String FMT =
|
||||
"id=%s, available=%s, local-status=%s, role=%s, type=%s, mfr=%s, hw=%s, sw=%s, serial=%s, driver=%s%s";
|
||||
"id=%s, available=%s, local-status=%s, role=%s, type=%s, mfr=%s, hw=%s, sw=%s, " +
|
||||
"serial=%s, chassis=%s, driver=%s%s";
|
||||
|
||||
private static final String FMT_SHORT =
|
||||
"id=%s, available=%s, role=%s, type=%s, driver=%s";
|
||||
@ -106,7 +107,7 @@ public class DevicesListCommand extends AbstractShellCommand {
|
||||
deviceService.localStatus(device.id()),
|
||||
deviceService.getRole(device.id()), device.type(),
|
||||
device.manufacturer(), device.hwVersion(), device.swVersion(),
|
||||
device.serialNumber(), driver,
|
||||
device.serialNumber(), device.chassisId(), driver,
|
||||
annotations(device.annotations(), ImmutableSet.of(AnnotationKeys.DRIVER)));
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@
|
||||
'URI': device.id,
|
||||
'Type': device.type,
|
||||
'Master ID': details['masterid'],
|
||||
'Chassis ID': details['chassid'],
|
||||
'Chassis ID': details['chassisid'],
|
||||
'Vendor': device.mfr,
|
||||
'H/W Version': device.hw,
|
||||
'S/W Version': device.sw,
|
||||
|
Loading…
x
Reference in New Issue
Block a user