mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-31 18:47:57 +00:00 
			
		
		
		
	WIFI-1170: Need to support Auto-Provisioning in disabled mode (#19)
This commit is contained in:
		| @@ -787,12 +787,8 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra | |||||||
| 		        throw new IllegalStateException("AP is not connected " + apId); | 		        throw new IllegalStateException("AP is not connected " + apId); | ||||||
| 		    } | 		    } | ||||||
| 		    int customerId = ovsdbSession.getCustomerId(); | 		    int customerId = ovsdbSession.getCustomerId(); | ||||||
| 			Customer customer = customerServiceInterface.getOrNull(customerId); |  | ||||||
| 			if ((customer != null) && (customer.getDetails() != null) |  | ||||||
| 					&& (customer.getDetails().getAutoProvisioning() != null) |  | ||||||
| 					&& customer.getDetails().getAutoProvisioning().isEnabled()) { |  | ||||||
| 				Equipment equipmentConfig = equipmentServiceInterface.getByInventoryIdOrNull(apId); |  | ||||||
| 		     | 		     | ||||||
|  | 		    Equipment equipmentConfig = equipmentServiceInterface.getByInventoryIdOrNull(apId); | ||||||
| 		    if (equipmentConfig == null) { | 		    if (equipmentConfig == null) { | ||||||
| 		        throw new IllegalStateException("Cannot retrieve configuration for " + apId); | 		        throw new IllegalStateException("Cannot retrieve configuration for " + apId); | ||||||
| 		    } | 		    } | ||||||
| @@ -879,9 +875,7 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra | |||||||
| 		    ret.setBlockedClients(blockList); | 		    ret.setBlockedClients(blockList); | ||||||
|  |  | ||||||
| 		    LOG.debug("ApConfig {}", ret); | 		    LOG.debug("ApConfig {}", ret); | ||||||
| 			} else { |  | ||||||
| 				LOG.info("Autoconfig is not enabled for this AP {}", apId); |  | ||||||
| 			} |  | ||||||
|  |  | ||||||
| 		} catch (Exception e) { | 		} catch (Exception e) { | ||||||
| 			LOG.error("Cannot read config for AP {}", apId, e); | 			LOG.error("Cannot read config for AP {}", apId, e); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mike Hansen
					Mike Hansen