Committed by
Gerrit Code Review
Make indent of case label consistent with other switch statements
Change-Id: I54254840efb0511290e2313cfa10878fb83feda5
Showing
1 changed file
with
42 additions
and
42 deletions
providers/openflow/flow/src/main/java/org/onosproject/provider/of/flow/impl/FlowModBuilderVer13.java
... | @@ -245,13 +245,13 @@ public class FlowModBuilderVer13 extends FlowModBuilder { | ... | @@ -245,13 +245,13 @@ public class FlowModBuilderVer13 extends FlowModBuilder { |
245 | private OFAction buildL0Modification(Instruction i) { | 245 | private OFAction buildL0Modification(Instruction i) { |
246 | L0ModificationInstruction l0m = (L0ModificationInstruction) i; | 246 | L0ModificationInstruction l0m = (L0ModificationInstruction) i; |
247 | switch (l0m.subtype()) { | 247 | switch (l0m.subtype()) { |
248 | - case LAMBDA: | 248 | + case LAMBDA: |
249 | - ModLambdaInstruction ml = (ModLambdaInstruction) i; | 249 | + ModLambdaInstruction ml = (ModLambdaInstruction) i; |
250 | - return factory().actions().circuit(factory().oxms().ochSigidBasic( | 250 | + return factory().actions().circuit(factory().oxms().ochSigidBasic( |
251 | - new CircuitSignalID((byte) 1, (byte) 2, ml.lambda(), (short) 1))); | 251 | + new CircuitSignalID((byte) 1, (byte) 2, ml.lambda(), (short) 1))); |
252 | - default: | 252 | + default: |
253 | - log.warn("Unimplemented action type {}.", l0m.subtype()); | 253 | + log.warn("Unimplemented action type {}.", l0m.subtype()); |
254 | - break; | 254 | + break; |
255 | } | 255 | } |
256 | return null; | 256 | return null; |
257 | } | 257 | } |
... | @@ -319,41 +319,41 @@ public class FlowModBuilderVer13 extends FlowModBuilder { | ... | @@ -319,41 +319,41 @@ public class FlowModBuilderVer13 extends FlowModBuilder { |
319 | Ip6Address ip6; | 319 | Ip6Address ip6; |
320 | OFOxm<?> oxm = null; | 320 | OFOxm<?> oxm = null; |
321 | switch (l3m.subtype()) { | 321 | switch (l3m.subtype()) { |
322 | - case IPV4_SRC: | 322 | + case IPV4_SRC: |
323 | - ip = (ModIPInstruction) i; | 323 | + ip = (ModIPInstruction) i; |
324 | - ip4 = ip.ip().getIp4Address(); | 324 | + ip4 = ip.ip().getIp4Address(); |
325 | - oxm = factory().oxms().ipv4Src(IPv4Address.of(ip4.toInt())); | 325 | + oxm = factory().oxms().ipv4Src(IPv4Address.of(ip4.toInt())); |
326 | - break; | 326 | + break; |
327 | - case IPV4_DST: | 327 | + case IPV4_DST: |
328 | - ip = (ModIPInstruction) i; | 328 | + ip = (ModIPInstruction) i; |
329 | - ip4 = ip.ip().getIp4Address(); | 329 | + ip4 = ip.ip().getIp4Address(); |
330 | - oxm = factory().oxms().ipv4Dst(IPv4Address.of(ip4.toInt())); | 330 | + oxm = factory().oxms().ipv4Dst(IPv4Address.of(ip4.toInt())); |
331 | - break; | 331 | + break; |
332 | - case IPV6_SRC: | 332 | + case IPV6_SRC: |
333 | - ip = (ModIPInstruction) i; | 333 | + ip = (ModIPInstruction) i; |
334 | - ip6 = ip.ip().getIp6Address(); | 334 | + ip6 = ip.ip().getIp6Address(); |
335 | - oxm = factory().oxms().ipv6Src(IPv6Address.of(ip6.toOctets())); | 335 | + oxm = factory().oxms().ipv6Src(IPv6Address.of(ip6.toOctets())); |
336 | - break; | 336 | + break; |
337 | - case IPV6_DST: | 337 | + case IPV6_DST: |
338 | - ip = (ModIPInstruction) i; | 338 | + ip = (ModIPInstruction) i; |
339 | - ip6 = ip.ip().getIp6Address(); | 339 | + ip6 = ip.ip().getIp6Address(); |
340 | - oxm = factory().oxms().ipv6Dst(IPv6Address.of(ip6.toOctets())); | 340 | + oxm = factory().oxms().ipv6Dst(IPv6Address.of(ip6.toOctets())); |
341 | - break; | 341 | + break; |
342 | - case IPV6_FLABEL: | 342 | + case IPV6_FLABEL: |
343 | - ModIPv6FlowLabelInstruction flowLabelInstruction = | 343 | + ModIPv6FlowLabelInstruction flowLabelInstruction = |
344 | - (ModIPv6FlowLabelInstruction) i; | 344 | + (ModIPv6FlowLabelInstruction) i; |
345 | - int flowLabel = flowLabelInstruction.flowLabel(); | 345 | + int flowLabel = flowLabelInstruction.flowLabel(); |
346 | - oxm = factory().oxms().ipv6Flabel(IPv6FlowLabel.of(flowLabel)); | 346 | + oxm = factory().oxms().ipv6Flabel(IPv6FlowLabel.of(flowLabel)); |
347 | - break; | 347 | + break; |
348 | - case DEC_TTL: | 348 | + case DEC_TTL: |
349 | - return factory().actions().decNwTtl(); | 349 | + return factory().actions().decNwTtl(); |
350 | - case TTL_IN: | 350 | + case TTL_IN: |
351 | - return factory().actions().copyTtlIn(); | 351 | + return factory().actions().copyTtlIn(); |
352 | - case TTL_OUT: | 352 | + case TTL_OUT: |
353 | - return factory().actions().copyTtlOut(); | 353 | + return factory().actions().copyTtlOut(); |
354 | - default: | 354 | + default: |
355 | - log.warn("Unimplemented action type {}.", l3m.subtype()); | 355 | + log.warn("Unimplemented action type {}.", l3m.subtype()); |
356 | - break; | 356 | + break; |
357 | } | 357 | } |
358 | 358 | ||
359 | if (oxm != null) { | 359 | if (oxm != null) { | ... | ... |
-
Please register or login to post a comment