Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count number of chassis #481

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public NlyteSummary getNlyteSummary(FacilitySoftwareConfig nlyte) {
case "Networks":
nlyteSummary.setSwitchNum((Integer)map.get("count"));
break;
case "Chassis":
nlyteSummary.setChassisNum((Integer)map.get("count"));
break;
default:
break;
}
Expand Down Expand Up @@ -207,6 +210,9 @@ public SystemSummary getAssetNumGroupByCategory(SystemSummary data) {
case "Networks":
data.setSwitchNum((Integer)map.get("count"));
break;
case "Chassis":
data.setChassisNum((Integer)map.get("count"));
break;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class NlyteSummary {
private int cabinetNum = 0;
private int switchNum = 0;
private int sensorNum = 0;
private int chassisNum;

public String getName() {
return name;
Expand Down Expand Up @@ -69,4 +70,12 @@ public void setSensorNum(int sensorNum) {
this.sensorNum = sensorNum;
}

public int getChassisNum() {
return chassisNum;
}

public void setChassisNum(int chassisNum) {
this.chassisNum = chassisNum;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class SystemSummary implements Serializable {
private int cabinetNum = 0;
private int switchNum = 0;
private int sensorNum = 0;
private int chassisNum;

private int humiditySensorNum = 0;
private int temperatureSensorNum = 0;
Expand Down Expand Up @@ -203,5 +204,13 @@ public void setVroSummary(List<VroSummary> vroSummary) {
this.vroSummary = vroSummary;
}

public int getChassisNum() {
return chassisNum;
}

public void setChassisNum(int chassisNum) {
this.chassisNum = chassisNum;
}


}