mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-02 19:47:52 +00:00
Adding RF profile structure
This commit is contained in:
@@ -29,6 +29,7 @@ public class OpensyncAPConfig extends BaseJsonModel {
|
|||||||
|
|
||||||
private Equipment customerEquipment;
|
private Equipment customerEquipment;
|
||||||
private Profile apProfile;
|
private Profile apProfile;
|
||||||
|
private Profile rfProfile;
|
||||||
private List<Profile> ssidProfile;
|
private List<Profile> ssidProfile;
|
||||||
private List<Profile> radiusProfiles;
|
private List<Profile> radiusProfiles;
|
||||||
private Location equipmentLocation;
|
private Location equipmentLocation;
|
||||||
@@ -139,6 +140,14 @@ public class OpensyncAPConfig extends BaseJsonModel {
|
|||||||
this.apProfile = apProfile;
|
this.apProfile = apProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Profile getRfProfile() {
|
||||||
|
return rfProfile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRfProfile(Profile rfProfile) {
|
||||||
|
this.rfProfile = rfProfile;
|
||||||
|
}
|
||||||
|
|
||||||
public List<Profile> getSsidProfile() {
|
public List<Profile> getSsidProfile() {
|
||||||
return ssidProfile;
|
return ssidProfile;
|
||||||
}
|
}
|
||||||
@@ -195,6 +204,8 @@ public class OpensyncAPConfig extends BaseJsonModel {
|
|||||||
}
|
}
|
||||||
if (apProfile != null)
|
if (apProfile != null)
|
||||||
ret.apProfile = apProfile.clone();
|
ret.apProfile = apProfile.clone();
|
||||||
|
if (rfProfile != null)
|
||||||
|
ret.rfProfile = rfProfile.clone();
|
||||||
if (equipmentRouting != null)
|
if (equipmentRouting != null)
|
||||||
ret.equipmentRouting = equipmentRouting.clone();
|
ret.equipmentRouting = equipmentRouting.clone();
|
||||||
if (equipmentGateway != null)
|
if (equipmentGateway != null)
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
|||||||
@Value("${tip.wlan.ovsdb.apProfileFileName:/app/config/ProfileAPExample.json}")
|
@Value("${tip.wlan.ovsdb.apProfileFileName:/app/config/ProfileAPExample.json}")
|
||||||
private String apProfileFileName;
|
private String apProfileFileName;
|
||||||
|
|
||||||
|
@Value("${tip.wlan.ovsdb.apProfileFileName:/app/config/ProfileRf.json}")
|
||||||
|
private String rfProfileFileName;
|
||||||
|
|
||||||
@Value("${tip.wlan.ovsdb.ssidProfileFileName:/app/config/ProfileSsid.json}")
|
@Value("${tip.wlan.ovsdb.ssidProfileFileName:/app/config/ProfileSsid.json}")
|
||||||
private String ssidProfileFileName;
|
private String ssidProfileFileName;
|
||||||
|
|
||||||
@@ -87,6 +90,11 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
|||||||
com.telecominfraproject.wlan.profile.models.Profile apProfile = com.telecominfraproject.wlan.profile.models.Profile
|
com.telecominfraproject.wlan.profile.models.Profile apProfile = com.telecominfraproject.wlan.profile.models.Profile
|
||||||
.fromFile(apProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
.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
|
List<com.telecominfraproject.wlan.profile.models.Profile> ssidProfiles = com.telecominfraproject.wlan.profile.models.Profile
|
||||||
.listFromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
.listFromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||||
|
|
||||||
@@ -123,6 +131,7 @@ public class OpensyncExternalIntegrationSimple implements OpensyncExternalIntegr
|
|||||||
ret = new OpensyncAPConfig();
|
ret = new OpensyncAPConfig();
|
||||||
ret.setCustomerEquipment(equipment);
|
ret.setCustomerEquipment(equipment);
|
||||||
ret.setApProfile(apProfile);
|
ret.setApProfile(apProfile);
|
||||||
|
ret.setRfProfile(rfProfile);
|
||||||
ret.setSsidProfile(ssidProfiles);
|
ret.setSsidProfile(ssidProfiles);
|
||||||
ret.setRadiusProfiles(radiusProfiles);
|
ret.setRadiusProfiles(radiusProfiles);
|
||||||
ret.setEquipmentLocation(location);
|
ret.setEquipmentLocation(location);
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
"childProfileIds": [
|
"childProfileIds": [
|
||||||
6,
|
6,
|
||||||
7,
|
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