.condition(Node.Condition.ENABLED)
.weight(20)
.build();
for (Node node: nodes) {
nodeApi.update(node.getId(), updateNode);
System.out.println(" " + node.getId() + " " + updateNode);
}
// Wait for the Load Balancer to become Active before moving on
// If you want to know what's happening during the polling, enable logging. See