/** * Creates a RSP and all the associated operational state based on the * given service function path * <p> * * @param createdServiceFunctionPath Service Function Path * @param createRenderedPathInput CreateRenderedPathInput object * @return RenderedServicePath Created RSP or null */ public static RenderedServicePath createRenderedServicePathAndState(ServiceFunctionPath createdServiceFunctionPath, CreateRenderedPathInput createRenderedPathInput) { return createRenderedServicePathAndState(createdServiceFunctionPath, createRenderedPathInput, defaultScheduler); }
.setSymmetric(sfp.isSymmetric()) .build(); rsp = SfcProviderRenderedPathAPI.createRenderedServicePathAndState(sfp, rspInput); if (rsp == null) { LOG.warn("getRenderedServicePathFromSfc: failed to add RSP");
private RenderedServicePath createRsp(ServiceFunctionPath sfcPath, RspName rspName) { CreateRenderedPathInput rspInput = new CreateRenderedPathInputBuilder().setParentServiceFunctionPath(sfcPath.getName().getValue()) .setName(rspName.getValue()) .setSymmetric(sfcPath.isSymmetric()) .build(); return SfcProviderRenderedPathAPI.createRenderedServicePathAndState(sfcPath, rspInput); }
.setSymmetric(sfp.isSymmetric()) .build(); rsp = SfcProviderRenderedPathAPI.createRenderedServicePathAndState(sfp, rspInput); if (rsp == null) { LOG.warn("failed to add RSP");
private RenderedServicePath createRsp(ServiceFunctionPath sfcPath, RspName rspName) { CreateRenderedPathInput rspInput = new CreateRenderedPathInputBuilder().setParentServiceFunctionPath(sfcPath.getName().getValue()) .setName(rspName.getValue()) .setSymmetric(sfcPath.isSymmetric()) .build(); return SfcProviderRenderedPathAPI.createRenderedServicePathAndState(sfcPath, rspInput); }
createRenderedPathInputBuilder.setSymmetric(serviceFunctionPath.isSymmetric()); renderedServicePath = SfcProviderRenderedPathAPI.createRenderedServicePathAndState(serviceFunctionPath, createRenderedPathInputBuilder.build(), scheduler); if (renderedServicePath == null) {
.createRenderedServicePathAndState(createdServiceFunctionPath, createRenderedPathInput); if (renderedServicePath != null) { retRspName = renderedServicePath.getName();