commit | 63a0140a4edaeeeeb2b7b6e426e3eea7c31e884d | [log] [tgz] |
---|---|---|
author | Sangho Shin <sangho@onlab.us> | Wed Oct 29 10:00:00 2014 -0700 |
committer | Sangho Shin <sangho@onlab.us> | Wed Oct 29 10:00:00 2014 -0700 |
tree | eb2ef8976f71b28ab838943ac5a43acfb786db1d | |
parent | e536293719b0524bd2fd3c0fd4d4da5f3d3f8dcf [diff] |
CopyInTTL action was added in adjacency Sid rule Change-Id: I16f29d87a3be384aecd6a4aeb1e7a37fcb933711
diff --git a/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java b/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java index 34b1a8c..d6b9a0d 100644 --- a/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java +++ b/src/main/java/net/onrc/onos/apps/segmentrouting/SegmentRoutingManager.java
@@ -711,11 +711,11 @@ MplsMatch mplsMatch = new MplsMatch(id, bos); List<Action> actions = new ArrayList<Action>(); + CopyTtlInAction copyTtlInAction = new CopyTtlInAction(); + actions.add(copyTtlInAction); if (bos) { PopMplsAction popAction = new PopMplsAction(EthType.IPv4); - CopyTtlInAction copyTtlInAction = new CopyTtlInAction(); DecNwTtlAction decNwTtlAction = new DecNwTtlAction(1); - actions.add(copyTtlInAction); actions.add(popAction); actions.add(decNwTtlAction); }