summaryrefslogtreecommitdiffstats
path: root/srv6/srv6-impl
diff options
context:
space:
mode:
Diffstat (limited to 'srv6/srv6-impl')
-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);
}