summaryrefslogtreecommitdiffstats
path: root/srv6/srv6-impl/src/main
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-06-27 16:59:59 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-28 06:54:27 +0000
commitbe5d619ab10035a01f6bbcf44de8381dfd023015 (patch)
treec205f5442dfd2af9d1991037bb5e6087421e08f1 /srv6/srv6-impl/src/main
parent6e00ba6bc6ead5b6d5215cf89cdfeaec08eac9d4 (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/srv6-impl/src/main')
-rw-r--r--srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/write/sid/SidCustomizer.java9
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);
}