Simplify lambda expressions by removing braces
Change-Id: I92fc90dcbaa9ac0c10f26dd19014dc4593bd4857
Showing
1 changed file
with
10 additions
and
16 deletions
| ... | @@ -240,10 +240,8 @@ public class VTNManager implements VTNService { | ... | @@ -240,10 +240,8 @@ public class VTNManager implements VTNService { |
| 240 | BridgeDescription sw = it.next(); | 240 | BridgeDescription sw = it.next(); |
| 241 | Set<PortNumber> ports = bridgeConfig.getPortNumbers(); | 241 | Set<PortNumber> ports = bridgeConfig.getPortNumbers(); |
| 242 | ports.stream().filter(p -> p.name().equalsIgnoreCase(vxlanName)) | 242 | ports.stream().filter(p -> p.name().equalsIgnoreCase(vxlanName)) |
| 243 | - .forEach(p -> { | 243 | + .forEach(p -> programTunnelOut(sw.deviceId(), network.segmentationId(), p, |
| 244 | - programTunnelOut(sw.deviceId(), network.segmentationId(), p, | 244 | + h.mac(), appId, Objective.Operation.ADD)); |
| 245 | - h.mac(), appId, Objective.Operation.ADD); | ||
| 246 | - }); | ||
| 247 | } | 245 | } |
| 248 | 246 | ||
| 249 | }); | 247 | }); |
| ... | @@ -308,12 +306,10 @@ public class VTNManager implements VTNService { | ... | @@ -308,12 +306,10 @@ public class VTNManager implements VTNService { |
| 308 | ports.stream() | 306 | ports.stream() |
| 309 | .filter(p -> p.name() | 307 | .filter(p -> p.name() |
| 310 | .equalsIgnoreCase(tunnelName)) | 308 | .equalsIgnoreCase(tunnelName)) |
| 311 | - .forEach(p -> { | 309 | + .forEach(p -> programTunnelOut(sw.deviceId(), |
| 312 | - programTunnelOut(sw.deviceId(), | 310 | + network.segmentationId(), p, |
| 313 | - network.segmentationId(), p, | 311 | + host.mac(), appId, |
| 314 | - host.mac(), appId, | 312 | + Objective.Operation.ADD)); |
| 315 | - Objective.Operation.ADD); | ||
| 316 | - }); | ||
| 317 | } | 313 | } |
| 318 | }); | 314 | }); |
| 319 | programLocalIn(deviceId, network.segmentationId(), inPort, host.mac(), | 315 | programLocalIn(deviceId, network.segmentationId(), inPort, host.mac(), |
| ... | @@ -374,12 +370,10 @@ public class VTNManager implements VTNService { | ... | @@ -374,12 +370,10 @@ public class VTNManager implements VTNService { |
| 374 | ports.stream() | 370 | ports.stream() |
| 375 | .filter(p -> p.name() | 371 | .filter(p -> p.name() |
| 376 | .equalsIgnoreCase(vxlanName)) | 372 | .equalsIgnoreCase(vxlanName)) |
| 377 | - .forEach(p -> { | 373 | + .forEach(p -> programTunnelOut(sw.deviceId(), |
| 378 | - programTunnelOut(sw.deviceId(), | 374 | + segId, p, |
| 379 | - segId, p, | 375 | + host.mac(), appId, |
| 380 | - host.mac(), appId, | 376 | + Objective.Operation.REMOVE)); |
| 381 | - Objective.Operation.REMOVE); | ||
| 382 | - }); | ||
| 383 | } | 377 | } |
| 384 | }); | 378 | }); |
| 385 | programLocalIn(deviceId, segId, inPort, host.mac(), | 379 | programLocalIn(deviceId, segId, inPort, host.mac(), | ... | ... |
-
Please register or login to post a comment