GW Support blocked client list northbound

This commit is contained in:
Lynn Shi
2020-07-23 19:47:54 -04:00
parent e13a4ca320
commit a828426618
6 changed files with 125 additions and 32 deletions

View File

@@ -1,7 +1,10 @@
package com.telecominfraproject.wlan.opensync.external.integration;
import java.util.List;
import java.util.Set;
import com.telecominfraproject.wlan.core.model.equipment.MacAddress;
public interface OvsdbClientInterface {
Set<String> getConnectedClientIds();
@@ -9,6 +12,8 @@ public interface OvsdbClientInterface {
String changeRedirectorAddress(String apId, String newRedirectorAddress);
void processConfigChanged(String apId);
void processClientBlocklistChange(String apId, List<MacAddress> blockList);
String processFirmwareDownload(String apId, String firmwareUrl, String firmwareVersion, String username,
String validationCode);

View File

@@ -7,6 +7,7 @@ import java.util.Set;
import com.telecominfraproject.wlan.core.model.entity.CountryCode;
import com.telecominfraproject.wlan.core.model.equipment.EquipmentType;
import com.telecominfraproject.wlan.core.model.equipment.MacAddress;
import com.telecominfraproject.wlan.core.model.equipment.RadioType;
import com.telecominfraproject.wlan.core.model.json.BaseJsonModel;
import com.telecominfraproject.wlan.equipment.models.ApElementConfiguration;
@@ -34,6 +35,7 @@ public class OpensyncAPConfig extends BaseJsonModel {
private EquipmentRoutingRecord equipmentRouting;
private EquipmentGatewayRecord equipmentGateway;
private List<Profile> captiveProfiles;
private List<MacAddress> blockedClients;
// Handle Legacy Config Support
public void setRadioConfig(OpensyncAPRadioConfig radioConfig) {
@@ -193,6 +195,12 @@ public class OpensyncAPConfig extends BaseJsonModel {
ret.captiveProfiles.add(cpConfig);
}
}
if (blockedClients != null) {
ret.blockedClients = new ArrayList<MacAddress>();
for (MacAddress blockedClient : this.blockedClients) {
ret.blockedClients.add(blockedClient);
}
}
return ret;
}
@@ -209,7 +217,15 @@ public class OpensyncAPConfig extends BaseJsonModel {
return captiveProfiles;
}
public void setCaptiveProfiles(List<Profile> captiveProfiles) {
public void setCaptiveProfiles(List<Profile> captiveProfiles) {
this.captiveProfiles = captiveProfiles;
}
public List<MacAddress> getBlockedClients() {
return blockedClients;
}
public void setBlockedClients(List<MacAddress> blockedClients) {
this.blockedClients = blockedClients;
}
}