APs running into Backoff shows as connected

Signed-off-by: Mike Hansen <mike.hansen@connectus.ai>
This commit is contained in:
Mike Hansen
2021-07-22 15:31:58 -04:00
parent 3085c34cde
commit aac34150b2
3 changed files with 0 additions and 46 deletions

View File

@@ -59,11 +59,6 @@ public enum CEGWCommandType {
WdsRequest,
ClientBlocklistChangeNotification,
/**
* Most recent timestamp for receipt of stats data from this AP.
*/
MostRecentStatsTimestamp,
UNSUPPORTED;

View File

@@ -16,12 +16,9 @@ import com.telecominfraproject.wlan.equipment.models.Equipment;
import com.telecominfraproject.wlan.equipment.models.RadioChannelChangeSettings;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWBlinkRequest;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWCommandResultCode;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWCommandType;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWFirmwareDownloadRequest;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWMostRecentStatsTimestamp;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWNewChannelRequest;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGWRebootRequest;
import com.telecominfraproject.wlan.equipmentgateway.models.CEGatewayCommand;
import com.telecominfraproject.wlan.equipmentgateway.models.EquipmentCommandResponse;
import com.telecominfraproject.wlan.equipmentgateway.service.EquipmentGatewayServiceInterface;
import com.telecominfraproject.wlan.firmware.FirmwareServiceInterface;
@@ -163,17 +160,4 @@ public class EquipmentGatewayPortalController {
}
}
@RequestMapping(value = "/equipmentGateway/lastReceivedStatsTimestamp", method = RequestMethod.GET)
public GenericResponse lastReceivedStatsTimestamp(@RequestParam long equipmentId) {
Equipment equipment = equipmentServiceInterface.get(equipmentId);
String apId = equipment.getInventoryId();
CEGWMostRecentStatsTimestamp mostRecentStatsTimestamp = new CEGWMostRecentStatsTimestamp(CEGWCommandType.MostRecentStatsTimestamp, apId, equipmentId);
EquipmentCommandResponse response = equipmentGatewayServiceInterface.sendCommand(mostRecentStatsTimestamp);
LOG.debug("lastReceivedStatsTimestamp response {}", response);
if (response.getResultCode() == CEGWCommandResultCode.Success) {
return new GenericResponse(true, response.getResultDetail());
} else {
return new GenericResponse(false, response.getResultCode() + " - Failed to get last received stats timestamp for " + apId);
}
}
}

View File

@@ -14268,31 +14268,6 @@ paths:
$ref: '#/components/schemas/GenericResponse'
500:
$ref: '#/components/responses/GenericApiError'
/portal/equipmentGateway/lastReceivedStatsTimestamp:
get:
tags:
- Equipment Gateway
summary: Request to get the last received (most recent) stats received timestamp for the APs session with the gateway controller
operationId: lastReceivedStatsTimestamp
parameters:
- name: equipmentId
in: query
description: Equipment id for AP for which last received stats timestamp is being requested.
required: true
schema:
type: integer
format: int64
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/GenericResponse'
500:
$ref: '#/components/responses/GenericApiError'
/portal/equipmentGateway/requestChannelChange:
post: