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
case INIT:
case DEVICE_CREATED:
case INCOMPLETE:
eventExecutor.execute(() -> {
if (node.type() == GATEWAY) {
GatewayNode gnode = GatewayNode.builder()
.gatewayDeviceId(node.intBridge())
.dataIpAddress(node.dataIp().getIp4Address())
.uplinkIntf(node.externalPortName().get())
.build();
gatewayService.deleteGatewayNode(gnode);
}
reloadRoutingRules();
});
default:
break;
}
......