Skip to content

Commit

Permalink
Added changes in the vRO plugin to clear the map cache after removing…
Browse files Browse the repository at this point in the history
… the endpoints. (#123)
  • Loading branch information
mkhachane authored Oct 12, 2022
1 parent bac5a01 commit 86bc45a
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,10 @@ public QueryResult findAll(String type, String query) {

private void reloadAviEndpoints() {
logger.info("__INIT__:: Inside reload endpoints to the map");
aviVroClientMap.clear();
List<AviConnectionInfo> infos = configurationService.getAll();
if (infos.isEmpty()) {
aviVroClientMap.clear();
} else {
for (AviConnectionInfo info: infos) {
getAviVroClient(info);
}
for (AviConnectionInfo info: infos) {
getAviVroClient(info);
}
logger.info("__DONE__:: Reload endpoint execution done.");
}
Expand Down

0 comments on commit 86bc45a

Please sign in to comment.