mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-31 02:27:49 +00:00 
			
		
		
		
	WIFI-1175: Passpoint Operator Domain In ID Provider Config Object
This commit is contained in:
		| @@ -7,7 +7,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "rogers.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
| @@ -139,7 +138,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider-2", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "telus.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
|   | ||||
| @@ -1,37 +1,42 @@ | ||||
| [ | ||||
| 	{ | ||||
| 		"model_type": "Profile", | ||||
| 		"id": 17, | ||||
| 		"customerId": 2, | ||||
| 		"profileType": "passpoint_operator", | ||||
| 		"name": "TipWlan-Passpoint-Operator", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOperatorProfile", | ||||
| 			"serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
| 			"x509CertificateLocation": "/etc/ca.pem", | ||||
| 			"operatorFriendlyName": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "en_CA", | ||||
| 					"dupleIso3Language": "eng", | ||||
| 					"dupleName": "Default friendly passpoint_operator name", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "eng:Default friendly passpoint_operator name" | ||||
| 				}, | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "fr_CA", | ||||
| 					"dupleIso3Language": "fra", | ||||
| 					"dupleName": "Nom de l'opérateur convivial par défaut", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
| 				} | ||||
| 			], | ||||
| 			"profileType": "passpoint_operator" | ||||
| 		}, | ||||
| 		"createdTimestamp": 1606778369945, | ||||
| 		"lastModifiedTimestamp": 1606778369945, | ||||
| 		"childProfileIds": [ | ||||
| 		] | ||||
| 	} | ||||
|     { | ||||
|         "model_type": "Profile", | ||||
|         "id": 17, | ||||
|         "customerId": 2, | ||||
|         "profileType": "passpoint_operator", | ||||
|         "name": "TipWlan-Passpoint-Operator", | ||||
|         "details": { | ||||
|             "model_type": "PasspointOperatorProfile", | ||||
|             "serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
|             "x509CertificateLocation": "/etc/ca.pem", | ||||
|             "operatorFriendlyName": [ | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "en_CA", | ||||
|                     "dupleIso3Language": "eng", | ||||
|                     "dupleName": "Default friendly passpoint_operator name", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "eng:Default friendly passpoint_operator name" | ||||
|                 }, | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "fr_CA", | ||||
|                     "dupleIso3Language": "fra", | ||||
|                     "dupleName": "Nom de l'opérateur convivial par défaut", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
|                 } | ||||
|             ], | ||||
|             "domainNameList": [ | ||||
|                 "telus.com", | ||||
|                 "rogers.com", | ||||
|                 "bell.ca" | ||||
|             ], | ||||
|             "profileType": "passpoint_operator" | ||||
|         }, | ||||
|         "createdTimestamp": 1606778369945, | ||||
|         "lastModifiedTimestamp": 1606778369945, | ||||
|         "childProfileIds": [ | ||||
|         ] | ||||
|     } | ||||
| ] | ||||
|   | ||||
| @@ -7,7 +7,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "rogers.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
| @@ -139,7 +138,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider-2", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "telus.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
|   | ||||
| @@ -1,37 +1,42 @@ | ||||
| [ | ||||
| 	{ | ||||
| 		"model_type": "Profile", | ||||
| 		"id": 17, | ||||
| 		"customerId": 2, | ||||
| 		"profileType": "passpoint_operator", | ||||
| 		"name": "TipWlan-Passpoint-Operator", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOperatorProfile", | ||||
| 			"serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
| 			"x509CertificateLocation": "/etc/ca.pem", | ||||
| 			"operatorFriendlyName": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "en_CA", | ||||
| 					"dupleIso3Language": "eng", | ||||
| 					"dupleName": "Default friendly passpoint_operator name", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "eng:Default friendly passpoint_operator name" | ||||
| 				}, | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "fr_CA", | ||||
| 					"dupleIso3Language": "fra", | ||||
| 					"dupleName": "Nom de l'opérateur convivial par défaut", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
| 				} | ||||
| 			], | ||||
| 			"profileType": "passpoint_operator" | ||||
| 		}, | ||||
| 		"createdTimestamp": 1606778369945, | ||||
| 		"lastModifiedTimestamp": 1606778369945, | ||||
| 		"childProfileIds": [ | ||||
| 		] | ||||
| 	} | ||||
|     { | ||||
|         "model_type": "Profile", | ||||
|         "id": 17, | ||||
|         "customerId": 2, | ||||
|         "profileType": "passpoint_operator", | ||||
|         "name": "TipWlan-Passpoint-Operator", | ||||
|         "details": { | ||||
|             "model_type": "PasspointOperatorProfile", | ||||
|             "serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
|             "x509CertificateLocation": "/etc/ca.pem", | ||||
|             "operatorFriendlyName": [ | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "en_CA", | ||||
|                     "dupleIso3Language": "eng", | ||||
|                     "dupleName": "Default friendly passpoint_operator name", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "eng:Default friendly passpoint_operator name" | ||||
|                 }, | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "fr_CA", | ||||
|                     "dupleIso3Language": "fra", | ||||
|                     "dupleName": "Nom de l'opérateur convivial par défaut", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
|                 } | ||||
|             ], | ||||
|             "domainNameList": [ | ||||
|                 "telus.com", | ||||
|                 "rogers.com", | ||||
|                 "bell.ca" | ||||
|             ], | ||||
|             "profileType": "passpoint_operator" | ||||
|         }, | ||||
|         "createdTimestamp": 1606778369945, | ||||
|         "lastModifiedTimestamp": 1606778369945, | ||||
|         "childProfileIds": [ | ||||
|         ] | ||||
|     } | ||||
| ] | ||||
|   | ||||
| @@ -7,7 +7,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "rogers.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
| @@ -139,7 +138,6 @@ | ||||
| 		"name": "TipWlan-Passpoint-OSU-Provider-2", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOsuProviderProfile", | ||||
| 			"domainName": "telus.com", | ||||
| 			"mccMncList": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointMccMnc", | ||||
|   | ||||
| @@ -1,37 +1,42 @@ | ||||
| [ | ||||
| 	{ | ||||
| 		"model_type": "Profile", | ||||
| 		"id": 17, | ||||
| 		"customerId": 2, | ||||
| 		"profileType": "passpoint_operator", | ||||
| 		"name": "TipWlan-Passpoint-Operator", | ||||
| 		"details": { | ||||
| 			"model_type": "PasspointOperatorProfile", | ||||
| 			"serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
| 			"x509CertificateLocation": "/etc/ca.pem", | ||||
| 			"operatorFriendlyName": [ | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "en_CA", | ||||
| 					"dupleIso3Language": "eng", | ||||
| 					"dupleName": "Default friendly passpoint_operator name", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "eng:Default friendly passpoint_operator name" | ||||
| 				}, | ||||
| 				{ | ||||
| 					"model_type": "PasspointDuple", | ||||
| 					"locale": "fr_CA", | ||||
| 					"dupleIso3Language": "fra", | ||||
| 					"dupleName": "Nom de l'opérateur convivial par défaut", | ||||
| 					"defaultDupleSeparator": ":", | ||||
| 					"asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
| 				} | ||||
| 			], | ||||
| 			"profileType": "passpoint_operator" | ||||
| 		}, | ||||
| 		"createdTimestamp": 1606778369945, | ||||
| 		"lastModifiedTimestamp": 1606778369945, | ||||
| 		"childProfileIds": [ | ||||
| 		] | ||||
| 	} | ||||
|     { | ||||
|         "model_type": "Profile", | ||||
|         "id": 17, | ||||
|         "customerId": 2, | ||||
|         "profileType": "passpoint_operator", | ||||
|         "name": "TipWlan-Passpoint-Operator", | ||||
|         "details": { | ||||
|             "model_type": "PasspointOperatorProfile", | ||||
|             "serverOnlyAuthenticatedL2EncryptionNetwork": false, | ||||
|             "x509CertificateLocation": "/etc/ca.pem", | ||||
|             "operatorFriendlyName": [ | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "en_CA", | ||||
|                     "dupleIso3Language": "eng", | ||||
|                     "dupleName": "Default friendly passpoint_operator name", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "eng:Default friendly passpoint_operator name" | ||||
|                 }, | ||||
|                 { | ||||
|                     "model_type": "PasspointDuple", | ||||
|                     "locale": "fr_CA", | ||||
|                     "dupleIso3Language": "fra", | ||||
|                     "dupleName": "Nom de l'opérateur convivial par défaut", | ||||
|                     "defaultDupleSeparator": ":", | ||||
|                     "asDuple": "fra:Nom de l'opérateur convivial par défaut" | ||||
|                 } | ||||
|             ], | ||||
|             "domainNameList": [ | ||||
|                 "telus.com", | ||||
|                 "rogers.com", | ||||
|                 "bell.ca" | ||||
|             ], | ||||
|             "profileType": "passpoint_operator" | ||||
|         }, | ||||
|         "createdTimestamp": 1606778369945, | ||||
|         "lastModifiedTimestamp": 1606778369945, | ||||
|         "childProfileIds": [ | ||||
|         ] | ||||
|     } | ||||
| ] | ||||
|   | ||||
| @@ -3680,12 +3680,23 @@ public class OvsdbDao { | ||||
|                                 return t.getId() == hs2Profile.getPasspointVenueProfileId(); | ||||
|                             } | ||||
|  | ||||
|                         }).findFirst().get(); | ||||
|  | ||||
|                         }).findFirst().get();                        | ||||
|                          | ||||
|                         PasspointVenueProfile passpointVenueProfile = (PasspointVenueProfile) venue.getDetails(); | ||||
|  | ||||
|                         Map<String, Value> rowColumns = new HashMap<>(); | ||||
|  | ||||
|                         Set<Atom<String>> domainNames = new HashSet<>(); | ||||
|                         for (String domainName : passpointOperatorProfile.getDomainNameList()) { | ||||
|                             domainNames.add(new Atom<>(domainName)); | ||||
|                         } | ||||
|                         if (domainNames.size() > 0) { | ||||
|                             com.vmware.ovsdb.protocol.operation.notation.Set domainNameSet = com.vmware.ovsdb.protocol.operation.notation.Set | ||||
|                                     .of(domainNames); | ||||
|                             rowColumns.put("domain_name", domainNameSet); | ||||
|                         } | ||||
|                          | ||||
|                          | ||||
|                         Map<String, Hotspot20OsuProviders> osuProviders = getProvisionedHotspot20OsuProviders( | ||||
|                                 ovsdbClient); | ||||
|                         List<Profile> providerList = new ArrayList<>(); | ||||
| @@ -3702,7 +3713,7 @@ public class OvsdbDao { | ||||
|  | ||||
|                         Set<Uuid> osuProvidersUuids = new HashSet<>(); | ||||
|                         Set<Uuid> osuIconUuids = new HashSet<>(); | ||||
|                         Set<Atom<String>> domainNames = new HashSet<>(); | ||||
|                         | ||||
|                         StringBuffer mccMncBuffer = new StringBuffer(); | ||||
|                         Set<Atom<String>> naiRealms = new HashSet<>(); | ||||
|                         Set<Atom<String>> roamingOis = new HashSet<>(); | ||||
| @@ -3718,7 +3729,6 @@ public class OvsdbDao { | ||||
|                                 }); | ||||
|                                 osuProvidersUuids.add(hotspot2OsuProviders.uuid); | ||||
|                                 osuIconUuids.addAll(hotspot2OsuProviders.osuIcons); | ||||
|                                 domainNames.add(new Atom<>(providerProfile.getDomainName())); | ||||
|                                 getNaiRealms(providerProfile, naiRealms); | ||||
|  | ||||
|                                 for (PasspointMccMnc passpointMccMnc : providerProfile.getMccMncList()) { | ||||
| @@ -3756,11 +3766,7 @@ public class OvsdbDao { | ||||
|                             rowColumns.put("operator_icons", iconUuids); | ||||
|                         } | ||||
|  | ||||
|                         if (domainNames.size() > 0) { | ||||
|                             com.vmware.ovsdb.protocol.operation.notation.Set domainNameSet = com.vmware.ovsdb.protocol.operation.notation.Set | ||||
|                                     .of(domainNames); | ||||
|                             rowColumns.put("domain_name", domainNameSet); | ||||
|                         } | ||||
|  | ||||
|  | ||||
|                         hs2Profile.getIpAddressTypeAvailability(); | ||||
|                         rowColumns.put("deauth_request_timeout", new Atom<>(hs2Profile.getDeauthRequestTimeout())); | ||||
|   | ||||
| @@ -150,6 +150,8 @@ public class OvsdbDaoTestUtilities { | ||||
|         passpointOperatorProfile.setName("TipWlan-Hotspot20-Operator"); | ||||
|         passpointOperatorProfile.setProfileType(ProfileType.passpoint_operator); | ||||
|         passpointOperatorProfile.setDetails(PasspointOperatorProfile.createWithDefaults()); | ||||
|         ((PasspointOperatorProfile)passpointOperatorProfile.getDetails()).setDomainNameList(Set.of("rogers.com","telus.com","bell.ca"));       | ||||
|  | ||||
|         return passpointOperatorProfile; | ||||
|     } | ||||
|  | ||||
| @@ -255,7 +257,6 @@ public class OvsdbDaoTestUtilities { | ||||
|  | ||||
|         naiRealmList.add(naiRealmInfo); | ||||
|         passpointIdProviderProfile.setNaiRealmList(naiRealmList); | ||||
|         passpointIdProviderProfile.setDomainName(domainName); | ||||
|         passpointIdProviderProfile.setOsuNaiStandalone("anonymous@" + domainName); | ||||
|         passpointIdProviderProfile.setOsuNaiShared("anonymous@" + domainName); | ||||
|         List<Integer> methodList = new ArrayList<>(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mike Hansen
					Mike Hansen