summaryrefslogtreecommitdiffstats
path: root/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-09-25 11:21:09 +0200
committerMichal Cmarada <mcmarada@cisco.com>2018-09-28 12:54:22 +0200
commit5bbd9feb84660d06fe635a0cd4cbdf45b110665c (patch)
tree934a3fb9159f832cce5cfbbfd03f9d68c306bf33 /srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java
parent9b0967210e3e50d0b52475cfc02e636dbfa28421 (diff)
Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433)
Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java')
-rw-r--r--srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java
index 6952c1538..278f4b822 100644
--- a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java
+++ b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/read/policy/request/PolicyReadRequest.java
@@ -136,7 +136,7 @@ public class PolicyReadRequest extends JVppRequest
Srv6PolicyMapping policy = policyCtx.getPolicy(bsid, ctx.getMappingContext());
IpAddress endpoint = new IpAddress(policy.getEndpoint());
builder.setName(policy.getName()).setEndpoint(endpoint).setColor(policy.getColor());
- builder.setKey(new PolicyKey(policy.getColor(), endpoint));
+ builder.withKey(new PolicyKey(policy.getColor(), endpoint));
builder.setBindingSid(new BindingSidBuilder().setState(
new StateBuilder().setType(DataplaneType.Srv6).setAllocMode(BindingSidAllocMode.Explicit)
.setValue(new SidValueType(new IpAddress(bsid))).build()).build());
@@ -225,7 +225,7 @@ public class PolicyReadRequest extends JVppRequest
final ReadContext ctx)
throws ReadFailedException {
NamedSegmentListKey key = id.firstKeyOf(NamedSegmentList.class);
- builder.setKey(key)
+ builder.withKey(key)
.setName(key.getName())
.setState(
new org.opendaylight.yang.gen.v1.http.cisco.com.ns.yang.oc.srte.policy.rev170918.segment.list.properties.StateBuilder()
@@ -254,7 +254,7 @@ public class PolicyReadRequest extends JVppRequest
private Segment parseSrv6Sid(final long i, final Srv6Sid srv6Sid) {
// shifting index by 1 so it matches original indexing
long index = i + 1L;
- SegmentBuilder builder = new SegmentBuilder().setKey(new SegmentKey(index)).setState(
+ SegmentBuilder builder = new SegmentBuilder().withKey(new SegmentKey(index)).setState(
new org.opendaylight.yang.gen.v1.http.cisco.com.ns.yang.oc.srte.policy.rev170918.segment.properties.StateBuilder()
.setIndex(index)
.setType(SegmentType.Type2)