diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-06-27 16:59:59 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-06-28 06:54:27 +0000 |
commit | be5d619ab10035a01f6bbcf44de8381dfd023015 (patch) | |
tree | c205f5442dfd2af9d1991037bb5e6087421e08f1 /srv6 | |
parent | 6e00ba6bc6ead5b6d5215cf89cdfeaec08eac9d4 (diff) |
srv6: do not check if SidCustomizer.bindRequest() returns null
Such comparison is allways false.
Change-Id: I39d4caac4146d48c04ecf28b3c9ecf7ae0127949
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'srv6')
-rw-r--r-- | srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java index c63205699..1b3e569c7 100644 --- a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java +++ b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java @@ -71,10 +71,6 @@ public class SidCustomizer extends FutureJVppCustomizer implements ListWriterCus Table vrfTable = getVrfTable(instanceIdentifier, writeContext, locatorIid, locatorOpt); LocalSidFunctionRequest request = bindRequest(extractLocPrefix(instanceIdentifier, locatorOpt, localSid), localSid, vrfTable.getTableId().getValue().intValue(), writeContext); - if (request == null) { - throw new WriteFailedException(instanceIdentifier, - String.format("Cannot create write request for %s", localSid)); - } request.write(instanceIdentifier); } @@ -117,11 +113,6 @@ public class SidCustomizer extends FutureJVppCustomizer implements ListWriterCus Table vrfTable = getVrfTable(instanceIdentifier, writeContext, locatorIid, locatorOpt); LocalSidFunctionRequest request = bindRequest(extractLocPrefix(instanceIdentifier, locatorOpt, localSid), localSid, vrfTable.getTableId().getValue().intValue(), writeContext); - - if (request == null) { - throw new WriteFailedException(instanceIdentifier, - String.format("Cannot create delete request for %s", localSid)); - } request.delete(instanceIdentifier); } |