Reduce depth of indent
Change-Id: Ie1caf1c818cb83824a1e495b46a5b7a0c2640098
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -117,19 +117,17 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { | ... | @@ -117,19 +117,17 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { |
117 | } | 117 | } |
118 | 118 | ||
119 | return ImmutableList.of(new FlowRuleIntent(appId, null, rules, intent.resources())); | 119 | return ImmutableList.of(new FlowRuleIntent(appId, null, rules, intent.resources())); |
120 | + } | ||
120 | 121 | ||
121 | - } else { | ||
122 | if (EncapsulationType.VLAN == enacpConstraint.get().encapType()) { | 122 | if (EncapsulationType.VLAN == enacpConstraint.get().encapType()) { |
123 | rules = manageVlanEncap(intent); | 123 | rules = manageVlanEncap(intent); |
124 | - } | 124 | + } else if (EncapsulationType.MPLS == enacpConstraint.get().encapType()) { |
125 | - if (EncapsulationType.MPLS == enacpConstraint.get().encapType()) { | ||
126 | //TODO: to be implemented | 125 | //TODO: to be implemented |
127 | rules = Collections.emptyList(); | 126 | rules = Collections.emptyList(); |
128 | } | 127 | } |
129 | 128 | ||
130 | return ImmutableList.of(new FlowRuleIntent(appId, null, rules, intent.resources())); | 129 | return ImmutableList.of(new FlowRuleIntent(appId, null, rules, intent.resources())); |
131 | } | 130 | } |
132 | - } | ||
133 | 131 | ||
134 | private FlowRule createFlowRule(TrafficSelector originalSelector, TrafficTreatment originalTreatment, | 132 | private FlowRule createFlowRule(TrafficSelector originalSelector, TrafficTreatment originalTreatment, |
135 | ConnectPoint ingress, ConnectPoint egress, | 133 | ConnectPoint ingress, ConnectPoint egress, | ... | ... |
-
Please register or login to post a comment