commit | 26130771d1a81c54e990464d141b1ef94ec00eae | [log] [tgz] |
---|---|---|
author | Yi Tseng <yi@opennetworking.org> | Thu Sep 14 13:28:18 2017 -0700 |
committer | Ray Milkey <ray@opennetworking.org> | Thu Sep 14 23:01:31 2017 +0000 |
tree | a339f1d8d9aa8ff10304f38d7e2198e57a7366d1 | |
parent | 93ba53cd592157c67f860a6a0bdd173a63416f06 [diff] |
Fix bmv2 pipeline model headerModelMap should use header model name as key, not header type name Change-Id: Icc1d28947d62d36ddf6c3ccc04646d15e7c6b27c
diff --git a/incubator/bmv2/model/src/main/java/org/onosproject/bmv2/model/Bmv2PipelineModel.java b/incubator/bmv2/model/src/main/java/org/onosproject/bmv2/model/Bmv2PipelineModel.java index 02d2274..b19ef61 100644 --- a/incubator/bmv2/model/src/main/java/org/onosproject/bmv2/model/Bmv2PipelineModel.java +++ b/incubator/bmv2/model/src/main/java/org/onosproject/bmv2/model/Bmv2PipelineModel.java
@@ -68,7 +68,7 @@ Map<String, PiHeaderModel> headerModelMap = Maps.newHashMap(); headerModels.stream() .filter(Objects::nonNull) - .forEach(hm -> headerModelMap.put(hm.type().name(), hm)); + .forEach(hm -> headerModelMap.put(hm.name(), hm)); this.headerModels = ImmutableMap.copyOf(headerModelMap); Map<String, PiActionModel> actionModelMap = Maps.newHashMap();