Remove some unused APC logic

This commit is contained in:
ralphlee
2022-01-13 23:20:11 -05:00
parent 434aa5c557
commit 91c1b854c5
2 changed files with 0 additions and 31 deletions

View File

@@ -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) {

View File

@@ -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);
}
}
}