commit | 8471a8db6bb776dba05832018b3f43bae36af0c1 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu Aug 30 19:49:23 2018 -0700 |
committer | Charles Chan <rascov@gmail.com> | Wed Sep 05 09:39:20 2018 -0700 |
tree | fa950e3d907f68d5c78fa67b399f266c2690734d | |
parent | 02298513e6f17e83fe13232f5cc00dd7b71c83e6 [diff] |
Pass metadata in the remove_from_existing operation, just like the add_to_existing case Change-Id: I398296bf6357ac7ee7ec4344c025604e1904ccc6
diff --git a/app/src/main/java/org/onosproject/segmentrouting/grouphandler/DefaultGroupHandler.java b/app/src/main/java/org/onosproject/segmentrouting/grouphandler/DefaultGroupHandler.java index 1ffd8e8..02f2b19 100644 --- a/app/src/main/java/org/onosproject/segmentrouting/grouphandler/DefaultGroupHandler.java +++ b/app/src/main/java/org/onosproject/segmentrouting/grouphandler/DefaultGroupHandler.java
@@ -409,9 +409,12 @@ */ private void removeFromHashedNextObjective(Collection<PortLabel> portLabels, MacAddress dstMac, Integer nextId) { + TrafficSelector.Builder metabuilder = DefaultTrafficSelector.builder(); + metabuilder.matchVlanId(srManager.getDefaultInternalVlan()); NextObjective.Builder nextObjBuilder = DefaultNextObjective .builder() .withType(NextObjective.Type.HASHED) //same as original + .withMeta(metabuilder.build()) .withId(nextId) .fromApp(appId); // Create the buckets to be removed