Adding support for multiple SSIDs per Radio, and multiple SSID Profiles in single SSID json file

This commit is contained in:
Mike Hansen
2020-05-22 15:20:40 -04:00
parent 055fe42346
commit 591629f90b
14 changed files with 769 additions and 41 deletions

View File

@@ -71,16 +71,20 @@ 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 ssidProfile = com.telecominfraproject.wlan.profile.models.Profile List<com.telecominfraproject.wlan.profile.models.Profile> ssidProfiles = com.telecominfraproject.wlan.profile.models.Profile
.fromFile(ssidProfileFileName, com.telecominfraproject.wlan.profile.models.Profile.class); .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); Location location = Location.fromFile(locationFileName, Location.class);
equipment.setLocationId(location.getId());
ret = new OpensyncAPConfig(); ret = new OpensyncAPConfig();
ret.setCustomerEquipment(equipment); ret.setCustomerEquipment(equipment);
ret.setApProfile(apProfile); 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.setSsidProfile(ssidProfiles);
ret.setEquipmentLocation(location); ret.setEquipmentLocation(location);

View File

@@ -2,7 +2,7 @@
"model_type" : "Equipment", "model_type" : "Equipment",
"id" : 50, "id" : 50,
"customerId" : 2, "customerId" : 2,
"profileId" : 2, "profileId" : null,
"locationId" : 8, "locationId" : 8,
"equipmentType" : "AP", "equipmentType" : "AP",
"inventoryId" : "ap-50", "inventoryId" : "ap-50",
@@ -100,8 +100,8 @@
}, },
"eirpTxPower" : { "eirpTxPower" : {
"model_type" : "AutoOrManualValue", "model_type" : "AutoOrManualValue",
"auto" : true, "auto" : false,
"value" : 18 "value" : 10
}, },
"bestApEnabled" : null, "bestApEnabled" : null,
"neighbouringListApConfig" : { "neighbouringListApConfig" : {
@@ -203,7 +203,7 @@
"is5GHzU" : { "is5GHzU" : {
"model_type" : "RadioConfiguration", "model_type" : "RadioConfiguration",
"radioType" : "is5GHzU", "radioType" : "is5GHzU",
"radioAdminState" : "enabled", "radioAdminState" : "disabled",
"fragmentationThresholdBytes" : 2346, "fragmentationThresholdBytes" : 2346,
"rtsCtsThreshold" : 65535, "rtsCtsThreshold" : 65535,
"autoChannelSelection" : "disabled", "autoChannelSelection" : "disabled",

View File

@@ -46,5 +46,5 @@
}, },
"createdTimestamp" : 1589567037365, "createdTimestamp" : 1589567037365,
"lastModifiedTimestamp" : 1589567037365, "lastModifiedTimestamp" : 1589567037365,
"childProfileIds" : [ 1 ] "childProfileIds" : [ ]
} }

View File

@@ -1,3 +1,4 @@
[
{ {
"model_type" : "Profile", "model_type" : "Profile",
"id" : 1, "id" : 1,
@@ -55,4 +56,181 @@
"createdTimestamp" : 1589567130432, "createdTimestamp" : 1589567130432,
"lastModifiedTimestamp" : 1589567130432, "lastModifiedTimestamp" : 1589567130432,
"childProfileIds" : [ ] "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" : [ ]
}
]

View File

@@ -2,7 +2,7 @@
"model_type" : "Equipment", "model_type" : "Equipment",
"id" : 50, "id" : 50,
"customerId" : 2, "customerId" : 2,
"profileId" : 2, "profileId" : null,
"locationId" : 8, "locationId" : 8,
"equipmentType" : "AP", "equipmentType" : "AP",
"inventoryId" : "ap-50", "inventoryId" : "ap-50",
@@ -100,8 +100,8 @@
}, },
"eirpTxPower" : { "eirpTxPower" : {
"model_type" : "AutoOrManualValue", "model_type" : "AutoOrManualValue",
"auto" : true, "auto" : false,
"value" : 18 "value" : 10
}, },
"bestApEnabled" : null, "bestApEnabled" : null,
"neighbouringListApConfig" : { "neighbouringListApConfig" : {
@@ -203,7 +203,7 @@
"is5GHzU" : { "is5GHzU" : {
"model_type" : "RadioConfiguration", "model_type" : "RadioConfiguration",
"radioType" : "is5GHzU", "radioType" : "is5GHzU",
"radioAdminState" : "enabled", "radioAdminState" : "disabled",
"fragmentationThresholdBytes" : 2346, "fragmentationThresholdBytes" : 2346,
"rtsCtsThreshold" : 65535, "rtsCtsThreshold" : 65535,
"autoChannelSelection" : "disabled", "autoChannelSelection" : "disabled",

View File

@@ -46,5 +46,5 @@
}, },
"createdTimestamp" : 1589567037365, "createdTimestamp" : 1589567037365,
"lastModifiedTimestamp" : 1589567037365, "lastModifiedTimestamp" : 1589567037365,
"childProfileIds" : [ 1 ] "childProfileIds" : [ ]
} }

View File

@@ -1,3 +1,4 @@
[
{ {
"model_type" : "Profile", "model_type" : "Profile",
"id" : 1, "id" : 1,
@@ -55,4 +56,181 @@
"createdTimestamp" : 1589567130432, "createdTimestamp" : 1589567130432,
"lastModifiedTimestamp" : 1589567130432, "lastModifiedTimestamp" : 1589567130432,
"childProfileIds" : [ ] "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" : [ ]
}
]

View File

@@ -2,7 +2,7 @@
"model_type" : "Equipment", "model_type" : "Equipment",
"id" : 50, "id" : 50,
"customerId" : 2, "customerId" : 2,
"profileId" : 2, "profileId" : null,
"locationId" : 8, "locationId" : 8,
"equipmentType" : "AP", "equipmentType" : "AP",
"inventoryId" : "ap-50", "inventoryId" : "ap-50",
@@ -100,8 +100,8 @@
}, },
"eirpTxPower" : { "eirpTxPower" : {
"model_type" : "AutoOrManualValue", "model_type" : "AutoOrManualValue",
"auto" : true, "auto" : false,
"value" : 18 "value" : 10
}, },
"bestApEnabled" : null, "bestApEnabled" : null,
"neighbouringListApConfig" : { "neighbouringListApConfig" : {
@@ -203,7 +203,7 @@
"is5GHzU" : { "is5GHzU" : {
"model_type" : "RadioConfiguration", "model_type" : "RadioConfiguration",
"radioType" : "is5GHzU", "radioType" : "is5GHzU",
"radioAdminState" : "enabled", "radioAdminState" : "disabled",
"fragmentationThresholdBytes" : 2346, "fragmentationThresholdBytes" : 2346,
"rtsCtsThreshold" : 65535, "rtsCtsThreshold" : 65535,
"autoChannelSelection" : "disabled", "autoChannelSelection" : "disabled",

View File

@@ -46,5 +46,5 @@
}, },
"createdTimestamp" : 1589567037365, "createdTimestamp" : 1589567037365,
"lastModifiedTimestamp" : 1589567037365, "lastModifiedTimestamp" : 1589567037365,
"childProfileIds" : [ 1 ] "childProfileIds" : [ ]
} }

View File

@@ -1,3 +1,4 @@
[
{ {
"model_type" : "Profile", "model_type" : "Profile",
"id" : 1, "id" : 1,
@@ -55,4 +56,181 @@
"createdTimestamp" : 1589567130432, "createdTimestamp" : 1589567130432,
"lastModifiedTimestamp" : 1589567130432, "lastModifiedTimestamp" : 1589567130432,
"childProfileIds" : [ ] "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" : [ ]
}
]

View File

@@ -2,7 +2,7 @@
"model_type" : "Equipment", "model_type" : "Equipment",
"id" : 50, "id" : 50,
"customerId" : 2, "customerId" : 2,
"profileId" : 2, "profileId" : null,
"locationId" : 8, "locationId" : 8,
"equipmentType" : "AP", "equipmentType" : "AP",
"inventoryId" : "ap-50", "inventoryId" : "ap-50",
@@ -100,8 +100,8 @@
}, },
"eirpTxPower" : { "eirpTxPower" : {
"model_type" : "AutoOrManualValue", "model_type" : "AutoOrManualValue",
"auto" : true, "auto" : false,
"value" : 18 "value" : 10
}, },
"bestApEnabled" : null, "bestApEnabled" : null,
"neighbouringListApConfig" : { "neighbouringListApConfig" : {
@@ -203,7 +203,7 @@
"is5GHzU" : { "is5GHzU" : {
"model_type" : "RadioConfiguration", "model_type" : "RadioConfiguration",
"radioType" : "is5GHzU", "radioType" : "is5GHzU",
"radioAdminState" : "enabled", "radioAdminState" : "disabled",
"fragmentationThresholdBytes" : 2346, "fragmentationThresholdBytes" : 2346,
"rtsCtsThreshold" : 65535, "rtsCtsThreshold" : 65535,
"autoChannelSelection" : "disabled", "autoChannelSelection" : "disabled",

View File

@@ -46,5 +46,5 @@
}, },
"createdTimestamp" : 1589567037365, "createdTimestamp" : 1589567037365,
"lastModifiedTimestamp" : 1589567037365, "lastModifiedTimestamp" : 1589567037365,
"childProfileIds" : [ 1 ] "childProfileIds" : [ ]
} }

View File

@@ -1,3 +1,4 @@
[
{ {
"model_type" : "Profile", "model_type" : "Profile",
"id" : 1, "id" : 1,
@@ -55,4 +56,181 @@
"createdTimestamp" : 1589567130432, "createdTimestamp" : 1589567130432,
"lastModifiedTimestamp" : 1589567130432, "lastModifiedTimestamp" : 1589567130432,
"childProfileIds" : [ ] "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" : [ ]
}
]

View File

@@ -1658,7 +1658,7 @@ public class OvsdbDao {
if (txPower > 0) if (txPower > 0)
updateColumns.put("tx_power", new Atom<Integer>(txPower)); updateColumns.put("tx_power", new Atom<Integer>(txPower));
else 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); Row row = new Row(updateColumns);
operations.add(new Update(wifiRadioConfigDbTable, conditions, row)); operations.add(new Update(wifiRadioConfigDbTable, conditions, row));
@@ -1669,7 +1669,7 @@ public class OvsdbDao {
LOG.debug("Provisioned channel {} for {}", channel, configName); LOG.debug("Provisioned channel {} for {}", channel, configName);
for (OperationResult res : result) { 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", new Atom<>(ssid));
updateColumns.put("ssid_broadcast", new Atom<>(ssidBroadcast ? "enabled" : "disabled")); updateColumns.put("ssid_broadcast", new Atom<>(ssidBroadcast ? "enabled" : "disabled"));
updateColumns.put("uapsd_enable", new Atom<>(true)); 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)); updateColumns.put("vlan_id", new Atom<>(vlanId));
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@@ -1766,24 +1767,35 @@ public class OvsdbDao {
public void configureSsids(OvsdbClient ovsdbClient, OpensyncAPConfig opensyncApConfig) { public void configureSsids(OvsdbClient ovsdbClient, OpensyncAPConfig opensyncApConfig) {
Map<String, WifiVifConfigInfo> provisionedWifiVifConfigs = getProvisionedWifiVifConfigs(ovsdbClient); boolean rrmEnabled = false;
Map<String, WifiRadioConfigInfo> provisionedWifiRadioConfigs = getProvisionedWifiRadioConfigs(ovsdbClient); if (opensyncApConfig.getEquipmentLocation() != null
LOG.debug("Existing WifiVifConfigs: {}", provisionedWifiVifConfigs.keySet()); && 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()) { for (Profile ssidProfile : opensyncApConfig.getSsidProfile()) {
Map<String, WifiVifConfigInfo> provisionedWifiVifConfigs = getProvisionedWifiVifConfigs(ovsdbClient);
LOG.debug("Existing WifiVifConfigs: {}", provisionedWifiVifConfigs.keySet());
SsidConfiguration ssidConfig = (SsidConfiguration) ssidProfile.getDetails(); SsidConfiguration ssidConfig = (SsidConfiguration) ssidProfile.getDetails();
for (RadioType radioType : ssidConfig.getAppliedRadios()) { for (RadioType radioType : ssidConfig.getAppliedRadios()) {
Map<String, WifiRadioConfigInfo> provisionedWifiRadioConfigs = getProvisionedWifiRadioConfigs(
ovsdbClient);
boolean ssidBroadcast = ssidConfig.getBroadcastSsid() == StateSetting.enabled; boolean ssidBroadcast = ssidConfig.getBroadcastSsid() == StateSetting.enabled;
Map<String, String> security = new HashMap<>(); 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("key", ssidConfig.getKeyStr());
security.put("mode", Long.toString(ssidConfig.getSecureMode().getId())); security.put("mode", Long.toString(ssidConfig.getSecureMode().getId()));
String bridge = brHome; String bridge = brHome;