Sho SHIMIZU

Simplify lambda expressions by removing braces

Change-Id: I92fc90dcbaa9ac0c10f26dd19014dc4593bd4857
......@@ -240,10 +240,8 @@ public class VTNManager implements VTNService {
BridgeDescription sw = it.next();
Set<PortNumber> ports = bridgeConfig.getPortNumbers();
ports.stream().filter(p -> p.name().equalsIgnoreCase(vxlanName))
.forEach(p -> {
programTunnelOut(sw.deviceId(), network.segmentationId(), p,
h.mac(), appId, Objective.Operation.ADD);
});
.forEach(p -> programTunnelOut(sw.deviceId(), network.segmentationId(), p,
h.mac(), appId, Objective.Operation.ADD));
}
});
......@@ -308,12 +306,10 @@ public class VTNManager implements VTNService {
ports.stream()
.filter(p -> p.name()
.equalsIgnoreCase(tunnelName))
.forEach(p -> {
programTunnelOut(sw.deviceId(),
.forEach(p -> programTunnelOut(sw.deviceId(),
network.segmentationId(), p,
host.mac(), appId,
Objective.Operation.ADD);
});
Objective.Operation.ADD));
}
});
programLocalIn(deviceId, network.segmentationId(), inPort, host.mac(),
......@@ -374,12 +370,10 @@ public class VTNManager implements VTNService {
ports.stream()
.filter(p -> p.name()
.equalsIgnoreCase(vxlanName))
.forEach(p -> {
programTunnelOut(sw.deviceId(),
.forEach(p -> programTunnelOut(sw.deviceId(),
segId, p,
host.mac(), appId,
Objective.Operation.REMOVE);
});
Objective.Operation.REMOVE));
}
});
programLocalIn(deviceId, segId, inPort, host.mac(),
......