Show chassisId in CLI and fix UI string

Change-Id: Iec755760d7c8a3a52502768f903d867907709543
This commit is contained in:
Andrea Campanella 2018-05-02 15:13:54 +02:00 committed by Thomas Vachuska
parent d9af042fb1
commit ab7d9abd45
2 changed files with 4 additions and 3 deletions

View File

@ -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)));
}
}

View File

@ -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,