mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 11:07:49 +00:00
WIFI-900: add global property for toggling mutation of clientCn
define property, implementation pending. WIFI-878: Define Data Types for Passpoint Profile models pickup changes from profile-models
This commit is contained in:
@@ -96,6 +96,8 @@ tip.wlan.listOfPathsToProtect=/api,/filestore
|
|||||||
#this server only supports REST requests, CSRF would get in the way
|
#this server only supports REST requests, CSRF would get in the way
|
||||||
tip.wlan.csrf-enabled=false
|
tip.wlan.csrf-enabled=false
|
||||||
|
|
||||||
|
# do not allow clientCn alteration
|
||||||
|
tip.wlan.preventClientCnAlteration=false
|
||||||
#properties that configure remote interfaces to communicate with cloud
|
#properties that configure remote interfaces to communicate with cloud
|
||||||
# when separate portal - prov - ssc processes are in use:
|
# when separate portal - prov - ssc processes are in use:
|
||||||
##SSC-related services
|
##SSC-related services
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
|
|||||||
@org.springframework.beans.factory.annotation.Value("${tip.wlan.manager.collectionIntervalSec.deviceStats:120}")
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.manager.collectionIntervalSec.deviceStats:120}")
|
||||||
private long collectionIntervalSecDeviceStats;
|
private long collectionIntervalSecDeviceStats;
|
||||||
|
|
||||||
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.preventClientCnAlteration:false}")
|
||||||
|
private boolean preventClientCnAlteration;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SslContext sslContext;
|
private SslContext sslContext;
|
||||||
|
|
||||||
@@ -196,6 +199,7 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.warn("Could not provision Bridge->Port->Interface mapping.", e);
|
LOG.warn("Could not provision Bridge->Port->Interface mapping.", e);
|
||||||
}
|
}
|
||||||
|
ovsdbDao.removeAllStatsConfigs(ovsdbClient); // always
|
||||||
ovsdbDao.removeAllSsids(ovsdbClient); // always
|
ovsdbDao.removeAllSsids(ovsdbClient); // always
|
||||||
ovsdbDao.removeWifiRrm(ovsdbClient);
|
ovsdbDao.removeWifiRrm(ovsdbClient);
|
||||||
|
|
||||||
@@ -204,10 +208,12 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
|
|||||||
ovsdbDao.configureInterfaces(ovsdbClient);
|
ovsdbDao.configureInterfaces(ovsdbClient);
|
||||||
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
|
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
|
||||||
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
|
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
|
||||||
|
ovsdbDao.configureStatsFromProfile(ovsdbClient, opensyncAPConfig);
|
||||||
|
if (((ApNetworkConfiguration) opensyncAPConfig.getApProfile().getDetails()).getSyntheticClientEnabled()) {
|
||||||
|
ovsdbDao.enableNetworkProbeForSyntheticClient(ovsdbClient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ovsdbDao.removeAllStatsConfigs(ovsdbClient); // always
|
|
||||||
ovsdbDao.configureStatsFromProfile(ovsdbClient, opensyncAPConfig);
|
|
||||||
|
|
||||||
// Check if device stats is configured in Wifi_Stats_Config table,
|
// Check if device stats is configured in Wifi_Stats_Config table,
|
||||||
// provision it
|
// provision it
|
||||||
@@ -274,7 +280,7 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
|
|||||||
ovsdbDao.configureInterfaces(ovsdbClient);
|
ovsdbDao.configureInterfaces(ovsdbClient);
|
||||||
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
|
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
|
||||||
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
|
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
|
||||||
|
|
||||||
ovsdbDao.configureStatsFromProfile(ovsdbClient, opensyncAPConfig);
|
ovsdbDao.configureStatsFromProfile(ovsdbClient, opensyncAPConfig);
|
||||||
|
|
||||||
// Check if device stats is configured in Wifi_Stats_Config table,
|
// Check if device stats is configured in Wifi_Stats_Config table,
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ public class OvsdbDao {
|
|||||||
// mqtt_settings:ins:'["map",[["broker","testportal.123wlan.com"],["topics","/ap/dev-ap-0300/opensync"],["qos","0"],["port","1883"],["remote_log","1"]]]'
|
// mqtt_settings:ins:'["map",[["broker","testportal.123wlan.com"],["topics","/ap/dev-ap-0300/opensync"],["qos","0"],["port","1883"],["remote_log","1"]]]'
|
||||||
Map<String, String> newMqttSettings = new HashMap<>();
|
Map<String, String> newMqttSettings = new HashMap<>();
|
||||||
newMqttSettings.put("broker", mqttBrokerAddress);
|
newMqttSettings.put("broker", mqttBrokerAddress);
|
||||||
newMqttSettings.put("topics", "/ap/" + clientCn + "_" + ret.serialNumber + "/opensync");
|
newMqttSettings.put("topics", "/ap/" + clientCn + "/opensync");
|
||||||
newMqttSettings.put("port", "" + mqttBrokerListenPort);
|
newMqttSettings.put("port", "" + mqttBrokerListenPort);
|
||||||
newMqttSettings.put("compress", "zlib");
|
newMqttSettings.put("compress", "zlib");
|
||||||
newMqttSettings.put("qos", "0");
|
newMqttSettings.put("qos", "0");
|
||||||
@@ -3423,7 +3423,7 @@ public class OvsdbDao {
|
|||||||
|
|
||||||
Set<Atom<String>> operatorFriendlyName = new HashSet<>();
|
Set<Atom<String>> operatorFriendlyName = new HashSet<>();
|
||||||
operatorProfile.getOperatorFriendlyName().stream()
|
operatorProfile.getOperatorFriendlyName().stream()
|
||||||
.forEach(c -> operatorFriendlyName.add(new Atom<>(c.getFormattedFriendlyName())));
|
.forEach(c -> operatorFriendlyName.add(new Atom<>(c.getAsDuple())));
|
||||||
com.vmware.ovsdb.protocol.operation.notation.Set operatorFriendlyNameSet = com.vmware.ovsdb.protocol.operation.notation.Set
|
com.vmware.ovsdb.protocol.operation.notation.Set operatorFriendlyNameSet = com.vmware.ovsdb.protocol.operation.notation.Set
|
||||||
.of(operatorFriendlyName);
|
.of(operatorFriendlyName);
|
||||||
rowColumns.put("operator_friendly_name", operatorFriendlyNameSet);
|
rowColumns.put("operator_friendly_name", operatorFriendlyNameSet);
|
||||||
@@ -3449,7 +3449,7 @@ public class OvsdbDao {
|
|||||||
Set<Atom<String>> venueUrls = new HashSet<>();
|
Set<Atom<String>> venueUrls = new HashSet<>();
|
||||||
int index = 1;
|
int index = 1;
|
||||||
for (VenueName venueName : venueProfile.getVenueNameSet()) {
|
for (VenueName venueName : venueProfile.getVenueNameSet()) {
|
||||||
venueNames.add(new Atom<String>(venueName.getFormattedVenueName()));
|
venueNames.add(new Atom<String>(venueName.getAsDuple()));
|
||||||
String url = String.valueOf(index) + ":" + venueName.getVenueUrl();
|
String url = String.valueOf(index) + ":" + venueName.getVenueUrl();
|
||||||
venueUrls.add(new Atom<String>(url));
|
venueUrls.add(new Atom<String>(url));
|
||||||
index++;
|
index++;
|
||||||
@@ -3644,9 +3644,7 @@ public class OvsdbDao {
|
|||||||
public void configureStatsFromProfile(OvsdbClient ovsdbClient, OpensyncAPConfig opensyncApConfig) {
|
public void configureStatsFromProfile(OvsdbClient ovsdbClient, OpensyncAPConfig opensyncApConfig) {
|
||||||
|
|
||||||
|
|
||||||
LOG.debug("Metrics config from profile {}", opensyncApConfig.getMetricsProfiles());
|
if (opensyncApConfig.getMetricsProfiles() == null || opensyncApConfig.getMetricsProfiles().isEmpty()) {
|
||||||
|
|
||||||
if (opensyncApConfig.getMetricsProfiles().isEmpty()) {
|
|
||||||
configureStats(ovsdbClient);
|
configureStats(ovsdbClient);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user