Keep GW process even though RRM on AP is not ready

This commit is contained in:
Lynn Shi
2020-08-06 16:54:05 -04:00
parent 0d3f80a8c0
commit e8acb5920b
2 changed files with 7 additions and 14 deletions

View File

@@ -193,14 +193,12 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
}
ovsdbDao.removeAllSsids(ovsdbClient); // always
//TODO turn on when RRM is ready
// ovsdbDao.removeWifiRrm(ovsdbClient);
ovsdbDao.removeWifiRrm(ovsdbClient);
if (opensyncAPConfig != null) {
ovsdbDao.configureWifiRadios(ovsdbClient, opensyncAPConfig);
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
//TODO turn on when RRM is ready
// ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
}
ovsdbDao.removeAllStatsConfigs(ovsdbClient); // always
@@ -262,14 +260,12 @@ public class TipWlanOvsdbClient implements OvsdbClientInterface {
}
ovsdbDao.removeAllSsids(ovsdbClient); // always
//TODO turn on when RRM is ready
// ovsdbDao.removeWifiRrm(ovsdbClient);
ovsdbDao.removeWifiRrm(ovsdbClient);
ovsdbDao.removeAllStatsConfigs(ovsdbClient); // always
ovsdbDao.configureWifiRadios(ovsdbClient, opensyncAPConfig);
ovsdbDao.configureSsids(ovsdbClient, opensyncAPConfig);
//TODO turn on when RRM is ready
// ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
ovsdbDao.configureWifiRrm(ovsdbClient, opensyncAPConfig);
ovsdbDao.configureStats(ovsdbClient);
// Check if device stats is configured in Wifi_Stats_Config table,

View File

@@ -3235,17 +3235,12 @@ public class OvsdbDao {
} catch (TimeoutException e) {
LOG.error("configureRrm failed with Timeout.", e);
throw new RuntimeException(e);
} catch (ExecutionException e) {
LOG.error("configureRrm excecution failed.", e);
throw new RuntimeException(e);
} catch (InterruptedException e) {
LOG.error("configureRrm interrupted.", e);
throw new RuntimeException(e);
}
}
}
}
@@ -3338,7 +3333,9 @@ public class OvsdbDao {
LOG.info("Removed Wifi_RRM_Config");
} catch (OvsdbClientException | TimeoutException | ExecutionException | InterruptedException e) {
} catch (ExecutionException e) {
LOG.error("Error in removeRrm", e);
} catch (OvsdbClientException | TimeoutException | InterruptedException e) {
LOG.error("Error in removeRrm", e);
throw new RuntimeException(e);
}