mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2026-03-20 23:39:11 +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" : [ ]
|
||||
}
|
||||
]
|
||||
@@ -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" : [ ]
|
||||
}
|
||||
]
|
||||
@@ -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" : [ ]
|
||||
}
|
||||
]
|
||||
@@ -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" : [ ]
|
||||
}
|
||||
]
|
||||
@@ -1658,7 +1658,7 @@ public class OvsdbDao {
|
||||
if (txPower > 0)
|
||||
updateColumns.put("tx_power", new Atom<Integer>(txPower));
|
||||
else
|
||||
updateColumns.put("tx_power", new Atom<Integer>(1));
|
||||
updateColumns.put("tx_power", new com.vmware.ovsdb.protocol.operation.notation.Set());
|
||||
|
||||
Row row = new Row(updateColumns);
|
||||
operations.add(new Update(wifiRadioConfigDbTable, conditions, row));
|
||||
@@ -1669,7 +1669,7 @@ public class OvsdbDao {
|
||||
LOG.debug("Provisioned channel {} for {}", channel, configName);
|
||||
|
||||
for (OperationResult res : result) {
|
||||
LOG.debug("MJH Op Result {}", res);
|
||||
LOG.debug("Op Result {}", res);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1693,7 +1693,8 @@ public class OvsdbDao {
|
||||
updateColumns.put("ssid", new Atom<>(ssid));
|
||||
updateColumns.put("ssid_broadcast", new Atom<>(ssidBroadcast ? "enabled" : "disabled"));
|
||||
updateColumns.put("uapsd_enable", new Atom<>(true));
|
||||
updateColumns.put("vif_radio_idx", new Atom<>(vifRadioIdx));
|
||||
updateColumns.put("vif_radio_idx", new Atom<Integer>(vifRadioIdx));
|
||||
|
||||
updateColumns.put("vlan_id", new Atom<>(vlanId));
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -1766,24 +1767,35 @@ public class OvsdbDao {
|
||||
|
||||
public void configureSsids(OvsdbClient ovsdbClient, OpensyncAPConfig opensyncApConfig) {
|
||||
|
||||
Map<String, WifiVifConfigInfo> provisionedWifiVifConfigs = getProvisionedWifiVifConfigs(ovsdbClient);
|
||||
Map<String, WifiRadioConfigInfo> provisionedWifiRadioConfigs = getProvisionedWifiRadioConfigs(ovsdbClient);
|
||||
LOG.debug("Existing WifiVifConfigs: {}", provisionedWifiVifConfigs.keySet());
|
||||
|
||||
boolean rrmEnabled = false;
|
||||
if (opensyncApConfig.getEquipmentLocation() != null &&
|
||||
opensyncApConfig.getEquipmentLocation().getDetails() != null) {
|
||||
rrmEnabled = opensyncApConfig.getEquipmentLocation().getDetails().isRrmEnabled();
|
||||
}
|
||||
boolean rrmEnabled = false;
|
||||
if (opensyncApConfig.getEquipmentLocation() != null
|
||||
&& opensyncApConfig.getEquipmentLocation().getDetails() != null) {
|
||||
rrmEnabled = opensyncApConfig.getEquipmentLocation().getDetails().isRrmEnabled();
|
||||
}
|
||||
|
||||
for (Profile ssidProfile : opensyncApConfig.getSsidProfile()) {
|
||||
|
||||
Map<String, WifiVifConfigInfo> provisionedWifiVifConfigs = getProvisionedWifiVifConfigs(ovsdbClient);
|
||||
LOG.debug("Existing WifiVifConfigs: {}", provisionedWifiVifConfigs.keySet());
|
||||
|
||||
SsidConfiguration ssidConfig = (SsidConfiguration) ssidProfile.getDetails();
|
||||
|
||||
for (RadioType radioType : ssidConfig.getAppliedRadios()) {
|
||||
|
||||
Map<String, WifiRadioConfigInfo> provisionedWifiRadioConfigs = getProvisionedWifiRadioConfigs(
|
||||
ovsdbClient);
|
||||
|
||||
boolean ssidBroadcast = ssidConfig.getBroadcastSsid() == StateSetting.enabled;
|
||||
Map<String, String> security = new HashMap<>();
|
||||
String ssidSecurityMode = ssidConfig.getSecureMode().name();
|
||||
String opensyncSecurityMode = "OPEN";
|
||||
|
||||
security.put("encryption", ssidConfig.getSecureMode().name());
|
||||
if (ssidSecurityMode.equalsIgnoreCase("wpaPSK") || ssidSecurityMode.equalsIgnoreCase("wpa2PSK"))
|
||||
opensyncSecurityMode = "WPA-PSK";
|
||||
else if (ssidSecurityMode.equalsIgnoreCase("wep"))
|
||||
opensyncSecurityMode = "WEP";
|
||||
|
||||
security.put("encryption", opensyncSecurityMode);
|
||||
security.put("key", ssidConfig.getKeyStr());
|
||||
security.put("mode", Long.toString(ssidConfig.getSecureMode().getId()));
|
||||
String bridge = brHome;
|
||||
|
||||
Reference in New Issue
Block a user