mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2026-03-21 11:39:16 +00:00
Adding RF Profile changes and updating static
This commit is contained in:
@@ -41,6 +41,9 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
||||
|
||||
@Value("${tip.wlan.ovsdb.ssidProfileFileName:/app/config/ProfileSsid.json}")
|
||||
private String ssidProfileFileName;
|
||||
|
||||
@Value("${tip.wlan.ovsdb.ssidProfileFileName:/app/config/ProfileRf.json}")
|
||||
private String rfProfileFileName;
|
||||
|
||||
@Value("${tip.wlan.ovsdb.radiusProfileFileName:/app/config/ProfileRadius.json}")
|
||||
private String radiusProfileFileName;
|
||||
@@ -86,6 +89,11 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
||||
|
||||
com.telecominfraproject.wlan.profile.models.Profile apProfile = com.telecominfraproject.wlan.profile.models.Profile
|
||||
.fromFile(apProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||
|
||||
com.telecominfraproject.wlan.profile.models.Profile rfProfile = com.telecominfraproject.wlan.profile.models.Profile
|
||||
.fromFile(rfProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||
|
||||
apProfile.getChildProfileIds().add(rfProfile.getId());
|
||||
|
||||
List<com.telecominfraproject.wlan.profile.models.Profile> ssidProfiles = com.telecominfraproject.wlan.profile.models.Profile
|
||||
.listFromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||
@@ -124,6 +132,7 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
||||
ret.setCustomerEquipment(equipment);
|
||||
ret.setApProfile(apProfile);
|
||||
ret.setSsidProfile(ssidProfiles);
|
||||
ret.setRfProfile(rfProfile);
|
||||
ret.setRadiusProfiles(radiusProfiles);
|
||||
ret.setEquipmentLocation(location);
|
||||
ret.setCaptiveProfiles(captiveProfiles);
|
||||
|
||||
@@ -38,8 +38,6 @@
|
||||
"channelNumber": 6,
|
||||
"manualChannelNumber": 6,
|
||||
"backupChannelNumber": 11,
|
||||
"autoChannelSelection": false,
|
||||
"channelBandwidth": "is20MHz",
|
||||
"bannedChannels": [],
|
||||
"allowedChannels": [],
|
||||
"rxCellSizeDb": {
|
||||
@@ -81,8 +79,6 @@
|
||||
"channelNumber": 149,
|
||||
"manualChannelNumber": 149,
|
||||
"backupChannelNumber": 154,
|
||||
"autoChannelSelection": false,
|
||||
"channelBandwidth": "is80MHz",
|
||||
"bannedChannels": [],
|
||||
"allowedChannels": [],
|
||||
"rxCellSizeDb": {
|
||||
@@ -124,8 +120,6 @@
|
||||
"channelNumber": 36,
|
||||
"manualChannelNumber": 36,
|
||||
"backupChannelNumber": 44,
|
||||
"autoChannelSelection": false,
|
||||
"channelBandwidth": "is80MHz",
|
||||
"bannedChannels": [],
|
||||
"allowedChannels": [],
|
||||
"rxCellSizeDb": {
|
||||
@@ -168,22 +162,11 @@
|
||||
"radioType": "is2dot4GHz",
|
||||
"radioAdminState": "enabled",
|
||||
"fragmentationThresholdBytes": 2346,
|
||||
"rtsCtsThreshold": 65535,
|
||||
"autoChannelSelection": "disabled",
|
||||
"radioMode": "modeN",
|
||||
"mimoMode": "twoByTwo",
|
||||
"wmmState": "enabled",
|
||||
"uapsdState": "enabled",
|
||||
"maxNumClients": 100,
|
||||
"stationIsolation": "disabled",
|
||||
"multicastRate": "auto",
|
||||
"managementRate": "auto",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
},
|
||||
"channelHopSettings": {
|
||||
"model_type": "ChannelHopSettings",
|
||||
"noiseFloorThresholdInDB": -75,
|
||||
@@ -200,7 +183,6 @@
|
||||
},
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"legacyBSSRate": "enabled",
|
||||
"beaconInterval": 100,
|
||||
"deauthAttackDetection": null
|
||||
},
|
||||
"is5GHzU": {
|
||||
@@ -208,22 +190,11 @@
|
||||
"radioType": "is5GHzU",
|
||||
"radioAdminState": "enabled",
|
||||
"fragmentationThresholdBytes": 2346,
|
||||
"rtsCtsThreshold": 65535,
|
||||
"autoChannelSelection": "disabled",
|
||||
"radioMode": "modeAC",
|
||||
"mimoMode": "twoByTwo",
|
||||
"wmmState": "enabled",
|
||||
"uapsdState": "enabled",
|
||||
"maxNumClients": 100,
|
||||
"stationIsolation": "disabled",
|
||||
"multicastRate": "auto",
|
||||
"managementRate": "auto",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
},
|
||||
"channelHopSettings": {
|
||||
"model_type": "ChannelHopSettings",
|
||||
"noiseFloorThresholdInDB": -75,
|
||||
@@ -240,7 +211,6 @@
|
||||
},
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"legacyBSSRate": "enabled",
|
||||
"beaconInterval": 100,
|
||||
"deauthAttackDetection": null
|
||||
},
|
||||
"is5GHzL": {
|
||||
@@ -248,22 +218,11 @@
|
||||
"radioType": "is5GHzL",
|
||||
"radioAdminState": "enabled",
|
||||
"fragmentationThresholdBytes": 2346,
|
||||
"rtsCtsThreshold": 65535,
|
||||
"autoChannelSelection": "disabled",
|
||||
"radioMode": "modeAC",
|
||||
"mimoMode": "twoByTwo",
|
||||
"wmmState": "enabled",
|
||||
"uapsdState": "enabled",
|
||||
"maxNumClients": 100,
|
||||
"stationIsolation": "disabled",
|
||||
"multicastRate": "auto",
|
||||
"managementRate": "auto",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
},
|
||||
"channelHopSettings": {
|
||||
"model_type": "ChannelHopSettings",
|
||||
"noiseFloorThresholdInDB": -75,
|
||||
@@ -280,7 +239,6 @@
|
||||
},
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"legacyBSSRate": "enabled",
|
||||
"beaconInterval": 100,
|
||||
"deauthAttackDetection": null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
"childProfileIds": [
|
||||
6,
|
||||
7,
|
||||
8
|
||||
8,
|
||||
9
|
||||
]
|
||||
}
|
||||
86
opensync-ext-static/src/main/resources/ProfileRf.json
Normal file
86
opensync-ext-static/src/main/resources/ProfileRf.json
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"model_type": "Profile",
|
||||
"id": 9,
|
||||
"customerId": 2,
|
||||
"profileType": "rf",
|
||||
"name": "DefaultRf-2g",
|
||||
"details": {
|
||||
"model_type": "RfConfiguration",
|
||||
"rf": "Default-RF-2g",
|
||||
"profileType": "rf",
|
||||
"rfConfigMap": {
|
||||
"is2dot4GHz": {
|
||||
"model_type": "RfElementConfiguration",
|
||||
"beaconInterval": 100,
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"rtsCtsThreshold": 65535,
|
||||
"channelBandwidth": "is20MHz",
|
||||
"mimoMode": "twoBytwo",
|
||||
"maxNumClients": 100,
|
||||
"multicastRate": "auto",
|
||||
"autoChannelSelection": "disabled",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
}
|
||||
},
|
||||
"is5GHz": {
|
||||
"model_type": "RfElementConfiguration",
|
||||
"beaconInterval": 100,
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"rtsCtsThreshold": 65535,
|
||||
"channelBandwidth": "is80MHz",
|
||||
"mimoMode": "twoBytwo",
|
||||
"maxNumClients": 100,
|
||||
"multicastRate": "auto",
|
||||
"autoChannelSelection": "disabled",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
}
|
||||
},
|
||||
"is5GHzL": {
|
||||
"model_type": "RfElementConfiguration",
|
||||
"beaconInterval": 100,
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"rtsCtsThreshold": 65535,
|
||||
"channelBandwidth": "is80MHz",
|
||||
"mimoMode": "twoBytwo",
|
||||
"maxNumClients": 100,
|
||||
"multicastRate": "auto",
|
||||
"autoChannelSelection": "disabled",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
}
|
||||
},
|
||||
"is5GHzU": {
|
||||
"model_type": "RfElementConfiguration",
|
||||
"beaconInterval": 100,
|
||||
"forceScanDuringVoice": "disabled",
|
||||
"rtsCtsThreshold": 65535,
|
||||
"channelBandwidth": "is80MHz",
|
||||
"mimoMode": "twoBytwo",
|
||||
"maxNumClients": 100,
|
||||
"multicastRate": "auto",
|
||||
"autoChannelSelection": "disabled",
|
||||
"activeScanSettings": {
|
||||
"model_type": "ActiveScanSettings",
|
||||
"enabled": true,
|
||||
"scanFrequencySeconds": 10,
|
||||
"scanDurationMillis": 65
|
||||
}
|
||||
}
|
||||
},
|
||||
"createdTimestamp": 1591653239983,
|
||||
"lastModifiedTimestamp": 1591653239983,
|
||||
"childProfileIds": [
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user