Daniel Park
Committed by Gerrit Code Review

[ONOS-5094] Fix to update group bucket when a gateway node jumped to INCOMPLETE state

Change-Id: I630e97c353694dc0f635d4070baf44d0df49b083
...@@ -495,6 +495,17 @@ public class OpenstackRoutingManager extends AbstractVmHandler implements Openst ...@@ -495,6 +495,17 @@ public class OpenstackRoutingManager extends AbstractVmHandler implements Openst
495 case INIT: 495 case INIT:
496 case DEVICE_CREATED: 496 case DEVICE_CREATED:
497 case INCOMPLETE: 497 case INCOMPLETE:
498 + eventExecutor.execute(() -> {
499 + if (node.type() == GATEWAY) {
500 + GatewayNode gnode = GatewayNode.builder()
501 + .gatewayDeviceId(node.intBridge())
502 + .dataIpAddress(node.dataIp().getIp4Address())
503 + .uplinkIntf(node.externalPortName().get())
504 + .build();
505 + gatewayService.deleteGatewayNode(gnode);
506 + }
507 + reloadRoutingRules();
508 + });
498 default: 509 default:
499 break; 510 break;
500 } 511 }
......