Support for Metrics Profile

Added to OpensyncAPConfig
Added Profiles for Static.
Added handler in OvsdbClient to process.
Currently not applying the values, uses the defaults still, but
remaining functionality will come in subsequent updates.
This commit is contained in:
Mike Hansen
2020-09-25 17:13:51 -04:00
parent 3d9b01c147
commit bb3a49addb
12 changed files with 236 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ public class OpensyncAPConfig extends BaseJsonModel {
private Profile apProfile;
private Profile rfProfile;
private List<Profile> ssidProfile;
private List<Profile> metricsProfile;
private List<Profile> radiusProfiles;
private Location equipmentLocation;
private EquipmentRoutingRecord equipmentRouting;
@@ -195,6 +196,13 @@ public class OpensyncAPConfig extends BaseJsonModel {
}
ret.ssidProfile = ssidList;
}
if (metricsProfile != null) {
List<Profile> metricsList = new ArrayList<Profile>();
for (Profile profile : metricsProfile) {
metricsList.add(profile.clone());
}
ret.metricsProfile = metricsList;
}
if (bonjourGatewayProfiles != null) {
List<Profile> bonjourGatewayProfilesList = new ArrayList<Profile>();
for (Profile profile : bonjourGatewayProfiles) {
@@ -255,4 +263,12 @@ public class OpensyncAPConfig extends BaseJsonModel {
public void setBlockedClients(List<MacAddress> blockedClients) {
this.blockedClients = blockedClients;
}
public void setMetricsProfiles(List<Profile> metricsProfileList) {
metricsProfile = metricsProfileList;
}
public List<Profile> getMetricsProfiles() {
return metricsProfile;
}
}