mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 11:07:49 +00:00
Remove some unused APC logic
This commit is contained in:
@@ -235,10 +235,6 @@ public class OvsdbDao extends OvsdbDaoBase {
|
||||
public void removeWifiRrm(OvsdbClient ovsdbClient) {
|
||||
ovsdbRrm.removeWifiRrm(ovsdbClient);
|
||||
}
|
||||
|
||||
public void removeApcConfig(OvsdbClient ovsdbClient) {
|
||||
ovsdbNodeConfig.removeApcConfig(ovsdbClient);
|
||||
}
|
||||
|
||||
public ConnectNodeInfo updateConnectNodeInfoOnConnect(OvsdbClient ovsdbClient, String clientCn,
|
||||
ConnectNodeInfo connectNodeInfo, boolean preventClientCnAlteration) {
|
||||
|
||||
@@ -244,31 +244,4 @@ public class OvsdbNodeConfig extends OvsdbDaoBase {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
void removeApcConfig(OvsdbClient ovsdbClient) {
|
||||
LOG.info("removeApcConfig from {}:", apcConfigDbTable);
|
||||
|
||||
try {
|
||||
|
||||
List<Operation> operations = new ArrayList<>();
|
||||
operations.add(new Delete(apcConfigDbTable));
|
||||
|
||||
CompletableFuture<OperationResult[]> fResult = ovsdbClient.transact(ovsdbName, operations);
|
||||
OperationResult[] result = fResult.get(ovsdbTimeoutSec, TimeUnit.SECONDS);
|
||||
|
||||
for (OperationResult res : result) {
|
||||
LOG.info("Op Result {}", res);
|
||||
if (res instanceof UpdateResult) {
|
||||
LOG.info("removeApcConfig {}", res.toString());
|
||||
} else if (res instanceof ErrorResult) {
|
||||
LOG.error("removeApcConfig error {}", (res));
|
||||
throw new RuntimeException("removeApcConfig " + ((ErrorResult) res).getError() + " " + ((ErrorResult) res).getDetails());
|
||||
}
|
||||
}
|
||||
} catch (OvsdbClientException | TimeoutException | ExecutionException | InterruptedException e) {
|
||||
LOG.error("Error in removeApcConfig", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user