Fix typo
Change-Id: Ic138bcecd04d47431a4cfa9d578a1216b4ec0030
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -101,11 +101,11 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { | ... | @@ -101,11 +101,11 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { |
101 | List<Link> links = intent.path().links(); | 101 | List<Link> links = intent.path().links(); |
102 | List<FlowRule> rules = new LinkedList<>(); | 102 | List<FlowRule> rules = new LinkedList<>(); |
103 | 103 | ||
104 | - Optional<EncapsulationConstraint> enacpConstraint = intent.constraints().stream() | 104 | + Optional<EncapsulationConstraint> encapConstraint = intent.constraints().stream() |
105 | .filter(constraint -> constraint instanceof EncapsulationConstraint) | 105 | .filter(constraint -> constraint instanceof EncapsulationConstraint) |
106 | .map(x -> (EncapsulationConstraint) x).findAny(); | 106 | .map(x -> (EncapsulationConstraint) x).findAny(); |
107 | //if no encapsulation or is involved only a single switch use the default behaviour | 107 | //if no encapsulation or is involved only a single switch use the default behaviour |
108 | - if (!enacpConstraint.isPresent() || links.size() == 1) { | 108 | + if (!encapConstraint.isPresent() || links.size() == 1) { |
109 | 109 | ||
110 | for (int i = 0; i < links.size() - 1; i++) { | 110 | for (int i = 0; i < links.size() - 1; i++) { |
111 | ConnectPoint ingress = links.get(i).dst(); | 111 | ConnectPoint ingress = links.get(i).dst(); |
... | @@ -119,9 +119,9 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { | ... | @@ -119,9 +119,9 @@ public class PathIntentCompiler implements IntentCompiler<PathIntent> { |
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 | ||
122 | - if (EncapsulationType.VLAN == enacpConstraint.get().encapType()) { | 122 | + if (EncapsulationType.VLAN == encapConstraint.get().encapType()) { |
123 | rules = manageVlanEncap(intent); | 123 | rules = manageVlanEncap(intent); |
124 | - } else if (EncapsulationType.MPLS == enacpConstraint.get().encapType()) { | 124 | + } else if (EncapsulationType.MPLS == encapConstraint.get().encapType()) { |
125 | //TODO: to be implemented | 125 | //TODO: to be implemented |
126 | rules = Collections.emptyList(); | 126 | rules = Collections.emptyList(); |
127 | } | 127 | } | ... | ... |
-
Please register or login to post a comment