mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-02 19:47:52 +00:00
changing attribute names in the data model: blacklist -> blocklist, whitelist -> allowlist
This commit is contained in:
@@ -2190,7 +2190,7 @@ public class OvsdbDao {
|
|||||||
Map<String, String> security, String radioFreqBand, int vlanId, boolean rrmEnabled, boolean enable80211r,
|
Map<String, String> security, String radioFreqBand, int vlanId, boolean rrmEnabled, boolean enable80211r,
|
||||||
String minHwMode, boolean enabled, int keyRefresh, boolean uapsdEnabled, boolean apBridge,
|
String minHwMode, boolean enabled, int keyRefresh, boolean uapsdEnabled, boolean apBridge,
|
||||||
NetworkForwardMode networkForwardMode, String gateway, String inet, Map<String, String> dns,
|
NetworkForwardMode networkForwardMode, String gateway, String inet, Map<String, String> dns,
|
||||||
String ipAssignScheme, Set<String> macBlackList, Set<String> macWhiteList) {
|
String ipAssignScheme, Set<String> macBlockList, Set<String> macAllowList) {
|
||||||
|
|
||||||
List<Operation> operations = new ArrayList<>();
|
List<Operation> operations = new ArrayList<>();
|
||||||
Map<String, Value> updateColumns = new HashMap<>();
|
Map<String, Value> updateColumns = new HashMap<>();
|
||||||
@@ -2239,11 +2239,11 @@ public class OvsdbDao {
|
|||||||
updateColumns.put("security", securityMap);
|
updateColumns.put("security", securityMap);
|
||||||
|
|
||||||
Set<String> macList = new HashSet<>();
|
Set<String> macList = new HashSet<>();
|
||||||
if (macBlackList != null && !macBlackList.isEmpty()) {
|
if (macBlockList != null && !macBlockList.isEmpty()) {
|
||||||
macList = macBlackList;
|
macList = macBlockList;
|
||||||
updateColumns.put("mac_list_type", new Atom<>("blacklist"));
|
updateColumns.put("mac_list_type", new Atom<>("blacklist"));
|
||||||
} else if (macWhiteList != null && !macWhiteList.isEmpty()) {
|
} else if (macAllowList != null && !macAllowList.isEmpty()) {
|
||||||
macList = macWhiteList;
|
macList = macAllowList;
|
||||||
updateColumns.put("mac_list_type", new Atom<>("whitelist"));
|
updateColumns.put("mac_list_type", new Atom<>("whitelist"));
|
||||||
} else {
|
} else {
|
||||||
updateColumns.put("mac_list_type", new Atom<>("none"));
|
updateColumns.put("mac_list_type", new Atom<>("none"));
|
||||||
@@ -2483,8 +2483,8 @@ public class OvsdbDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO fill from NBI
|
// TODO fill from NBI
|
||||||
Set<String> macBlackList = new HashSet<>();
|
Set<String> macBlockList = new HashSet<>();
|
||||||
Set<String> macWhiteList = new HashSet<>();
|
Set<String> macAllowList = new HashSet<>();
|
||||||
|
|
||||||
boolean enabled = ssidConfig.getSsidAdminState().equals(StateSetting.enabled);
|
boolean enabled = ssidConfig.getSsidAdminState().equals(StateSetting.enabled);
|
||||||
|
|
||||||
@@ -2528,7 +2528,7 @@ public class OvsdbDao {
|
|||||||
configureSingleSsid(ovsdbClient, ifName, ssidConfig.getSsid(), ssidBroadcast, security, freqBand,
|
configureSingleSsid(ovsdbClient, ifName, ssidConfig.getSsid(), ssidBroadcast, security, freqBand,
|
||||||
ssidConfig.getVlanId(), rrmEnabled, enable80211r, minHwMode, enabled, keyRefresh,
|
ssidConfig.getVlanId(), rrmEnabled, enable80211r, minHwMode, enabled, keyRefresh,
|
||||||
uapsdEnabled, apBridge, ssidConfig.getForwardMode(), gateway, inet, dns, ipAssignScheme,
|
uapsdEnabled, apBridge, ssidConfig.getForwardMode(), gateway, inet, dns, ipAssignScheme,
|
||||||
macBlackList, macWhiteList);
|
macBlockList, macAllowList);
|
||||||
|
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
// could not provision this SSID, but still can go on
|
// could not provision this SSID, but still can go on
|
||||||
|
|||||||
Reference in New Issue
Block a user