mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-03 03:57:54 +00:00
Client Session update handling, only for client entries without null values
This commit is contained in:
@@ -1273,7 +1273,7 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClientSession clientSession = clientServiceInterface.getSessionOrNull(customerId, equipmentId,
|
ClientSession clientSession = clientServiceInterface.getSessionOrNull(customerId, equipmentId,
|
||||||
clientInstance.getMacAddress());
|
new MacAddress(client.getMacAddress()));
|
||||||
// For this session if we have a disconnected client, remove, else
|
// For this session if we have a disconnected client, remove, else
|
||||||
// update
|
// update
|
||||||
if (!client.getConnected()) {
|
if (!client.getConnected()) {
|
||||||
@@ -1291,7 +1291,7 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
|
|||||||
clientSession.setCustomerId(customerId);
|
clientSession.setCustomerId(customerId);
|
||||||
clientSession.setEquipmentId(equipmentId);
|
clientSession.setEquipmentId(equipmentId);
|
||||||
clientSession.setLocationId(locationId);
|
clientSession.setLocationId(locationId);
|
||||||
clientSession.setMacAddress(clientInstance.getMacAddress());
|
clientSession.setMacAddress(new MacAddress(client.getMacAddress()));
|
||||||
|
|
||||||
ClientSessionDetails clientSessionDetails = new ClientSessionDetails();
|
ClientSessionDetails clientSessionDetails = new ClientSessionDetails();
|
||||||
clientSessionDetails.setAssocTimestamp(timestamp - client.getConnectOffsetMs());
|
clientSessionDetails.setAssocTimestamp(timestamp - client.getConnectOffsetMs());
|
||||||
|
|||||||
Reference in New Issue
Block a user