mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 11:07:49 +00:00
Adding support for multiple SSIDs per Radio, and multiple SSID Profiles in single SSID json file
This commit is contained in:
@@ -71,16 +71,20 @@ 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 ssidProfile = com.telecominfraproject.wlan.profile.models.Profile
|
||||
.fromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||
List<com.telecominfraproject.wlan.profile.models.Profile> ssidProfiles = com.telecominfraproject.wlan.profile.models.Profile
|
||||
.listFromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class);
|
||||
|
||||
ssidProfiles.stream().forEach(p -> apProfile.getChildProfileIds().add(p.getId()));
|
||||
|
||||
equipment.setProfileId(apProfile.getId());
|
||||
|
||||
Location location = Location.fromFile(locationFileName, Location.class);
|
||||
|
||||
equipment.setLocationId(location.getId());
|
||||
|
||||
ret = new OpensyncAPConfig();
|
||||
ret.setCustomerEquipment(equipment);
|
||||
ret.setApProfile(apProfile);
|
||||
List<com.telecominfraproject.wlan.profile.models.Profile> ssidProfiles = new ArrayList<com.telecominfraproject.wlan.profile.models.Profile>();
|
||||
ssidProfiles.add(ssidProfile);
|
||||
ret.setSsidProfile(ssidProfiles);
|
||||
ret.setEquipmentLocation(location);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"model_type" : "Equipment",
|
||||
"id" : 50,
|
||||
"customerId" : 2,
|
||||
"profileId" : 2,
|
||||
"profileId" : null,
|
||||
"locationId" : 8,
|
||||
"equipmentType" : "AP",
|
||||
"inventoryId" : "ap-50",
|
||||
@@ -100,8 +100,8 @@
|
||||
},
|
||||
"eirpTxPower" : {
|
||||
"model_type" : "AutoOrManualValue",
|
||||
"auto" : true,
|
||||
"value" : 18
|
||||
"auto" : false,
|
||||
"value" : 10
|
||||
},
|
||||
"bestApEnabled" : null,
|
||||
"neighbouringListApConfig" : {
|
||||
@@ -203,7 +203,7 @@
|
||||
"is5GHzU" : {
|
||||
"model_type" : "RadioConfiguration",
|
||||
"radioType" : "is5GHzU",
|
||||
"radioAdminState" : "enabled",
|
||||
"radioAdminState" : "disabled",
|
||||
"fragmentationThresholdBytes" : 2346,
|
||||
"rtsCtsThreshold" : 65535,
|
||||
"autoChannelSelection" : "disabled",
|
||||
|
||||
@@ -46,5 +46,5 @@
|
||||
},
|
||||
"createdTimestamp" : 1589567037365,
|
||||
"lastModifiedTimestamp" : 1589567037365,
|
||||
"childProfileIds" : [ 1 ]
|
||||
"childProfileIds" : [ ]
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
[
|
||||
{
|
||||
"model_type" : "Profile",
|
||||
"id" : 1,
|
||||
@@ -55,4 +56,181 @@
|
||||
"createdTimestamp" : 1589567130432,
|
||||
"lastModifiedTimestamp" : 1589567130432,
|
||||
"childProfileIds" : [ ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"model_type" : "Profile",
|
||||
"id" : 2,
|
||||
"customerId" : 2,
|
||||
"profileType" : "ssid",
|
||||
"name" : "Connectus-local-2",
|
||||
"details" : {
|
||||
"model_type" : "SsidConfiguration",
|
||||
"sampleDetailsStr" : null,
|
||||
"ssid" : "Connectus-local-2",
|
||||
"appliedRadios" : [ "is5GHzL", "is5GHzU"],
|
||||
"ssidAdminState" : "enabled",
|
||||
"secureMode" : "wpa2PSK",
|
||||
"vlanId" : 1,
|
||||
"keyStr" : "12345678",
|
||||
"broadcastSsid" : "enabled",
|
||||
"keyRefresh" : 0,
|
||||
"noLocalSubnets" : false,
|
||||
"radiusServiceName" : null,
|
||||
"captivePortalId" : null,
|
||||
"bandwidthLimitDown" : 0,
|
||||
"bandwidthLimitUp" : 0,
|
||||
"videoTrafficOnly" : false,
|
||||
"radioBasedConfigs" : {
|
||||
"is5GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is2dot4GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzU" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzL" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
}
|
||||
},
|
||||
"bonjourGatewayProfileId" : null,
|
||||
"enable80211w" : null,
|
||||
"wepConfig" : null,
|
||||
"forwardMode" : null
|
||||
},
|
||||
"createdTimestamp" : 1589567130432,
|
||||
"lastModifiedTimestamp" : 1589567130432,
|
||||
"childProfileIds" : [ ]
|
||||
}
|
||||
,
|
||||
{
|
||||
"model_type" : "Profile",
|
||||
"id" : 3,
|
||||
"customerId" : 2,
|
||||
"profileType" : "ssid",
|
||||
"name" : "Connectus-local-3u",
|
||||
"details" : {
|
||||
"model_type" : "SsidConfiguration",
|
||||
"sampleDetailsStr" : null,
|
||||
"ssid" : "Connectus-local-3u",
|
||||
"appliedRadios" : [ "is5GHzU" ],
|
||||
"ssidAdminState" : "enabled",
|
||||
"secureMode" : "wpa2PSK",
|
||||
"vlanId" : 1,
|
||||
"keyStr" : "12345678",
|
||||
"broadcastSsid" : "enabled",
|
||||
"keyRefresh" : 0,
|
||||
"noLocalSubnets" : false,
|
||||
"radiusServiceName" : null,
|
||||
"captivePortalId" : null,
|
||||
"bandwidthLimitDown" : 0,
|
||||
"bandwidthLimitUp" : 0,
|
||||
"videoTrafficOnly" : false,
|
||||
"radioBasedConfigs" : {
|
||||
"is5GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is2dot4GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzU" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzL" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
}
|
||||
},
|
||||
"bonjourGatewayProfileId" : null,
|
||||
"enable80211w" : null,
|
||||
"wepConfig" : null,
|
||||
"forwardMode" : null
|
||||
},
|
||||
"createdTimestamp" : 1589567130432,
|
||||
"lastModifiedTimestamp" : 1589567130432,
|
||||
"childProfileIds" : [ ]
|
||||
}
|
||||
,
|
||||
{
|
||||
"model_type" : "Profile",
|
||||
"id" : 4,
|
||||
"customerId" : 2,
|
||||
"profileType" : "ssid",
|
||||
"name" : "Connectus-local-4l",
|
||||
"details" : {
|
||||
"model_type" : "SsidConfiguration",
|
||||
"sampleDetailsStr" : null,
|
||||
"ssid" : "Connectus-local-4l",
|
||||
"appliedRadios" : [ "is5GHzL" ],
|
||||
"ssidAdminState" : "enabled",
|
||||
"secureMode" : "wpa2PSK",
|
||||
"vlanId" : 1,
|
||||
"keyStr" : "12345678",
|
||||
"broadcastSsid" : "enabled",
|
||||
"keyRefresh" : 0,
|
||||
"noLocalSubnets" : false,
|
||||
"radiusServiceName" : null,
|
||||
"captivePortalId" : null,
|
||||
"bandwidthLimitDown" : 0,
|
||||
"bandwidthLimitUp" : 0,
|
||||
"videoTrafficOnly" : false,
|
||||
"radioBasedConfigs" : {
|
||||
"is5GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is2dot4GHz" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzU" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
},
|
||||
"is5GHzL" : {
|
||||
"model_type" : "RadioBasedSsidConfiguration",
|
||||
"enable80211r" : null,
|
||||
"enable80211k" : null,
|
||||
"enable80211v" : null
|
||||
}
|
||||
},
|
||||
"bonjourGatewayProfileId" : null,
|
||||
"enable80211w" : null,
|
||||
"wepConfig" : null,
|
||||
"forwardMode" : null
|
||||
},
|
||||
"createdTimestamp" : 1589567130432,
|
||||
"lastModifiedTimestamp" : 1589567130432,
|
||||
"childProfileIds" : [ ]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user