mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 11:07:49 +00:00
WIFI-1068: Cloud Backend: Extend or replace existing base_model CountryCode
This commit is contained in:
@@ -490,7 +490,7 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
|
||||
protocolStatusData.setCloudCfgDataVersion(42L);
|
||||
protocolStatusData.setReportedCfgDataVersion(42L);
|
||||
protocolStatusData.setCountryCode("CA");
|
||||
protocolStatusData.setReportedCC(CountryCode.ca);
|
||||
protocolStatusData.setReportedCC(CountryCode.CA);
|
||||
protocolStatusData.setReportedHwVersion(connectNodeInfo.platformVersion);
|
||||
if (connectNodeInfo.versionMatrix.containsKey(OvsdbStringConstants.FW_IMAGE_ACTIVE_KEY)) {
|
||||
protocolStatusData.setReportedSwVersion(
|
||||
@@ -1132,8 +1132,8 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
|
||||
|
||||
protocolStatusData = (EquipmentProtocolStatusData) protocolStatus.getDetails();
|
||||
if (!protocolStatusData.getReportedCC()
|
||||
.equals(CountryCode.valueOf(radioState.getCountry().toLowerCase()))) {
|
||||
protocolStatusData.setReportedCC(CountryCode.valueOf(radioState.getCountry().toLowerCase()));
|
||||
.equals(CountryCode.getByName((radioState.getCountry())))) {
|
||||
protocolStatusData.setReportedCC(CountryCode.getByName((radioState.getCountry())));
|
||||
protocolStatus.setDetails(protocolStatusData);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -697,7 +697,7 @@ public class OpensyncExternalIntegrationCloudTest {
|
||||
protocolStatus.setCustomerId(2);
|
||||
protocolStatus.setEquipmentId(1L);
|
||||
EquipmentProtocolStatusData protocolStatusData = new EquipmentProtocolStatusData();
|
||||
protocolStatusData.setReportedCC(CountryCode.ca);
|
||||
protocolStatusData.setReportedCC(CountryCode.CA);
|
||||
protocolStatus.setDetails(protocolStatusData);
|
||||
protocolStatus.setStatusDataType(StatusDataType.PROTOCOL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user