use of org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.common.rev151017.RspName in project netvirt by opendaylight.
the class SfcProviderTest method getRenderedServicePath.
@Test
public void getRenderedServicePath() {
RspName rspName = new RspName(RSP_NAME);
RenderedServicePathBuilder rspBuilder = createRsp(rspName);
storeRsp(rspName, rspBuilder.build());
Optional<RenderedServicePath> rspOptional = this.sfcProvider.getRenderedServicePath(RSP_NAME);
assertTrue(rspOptional.isPresent());
}
use of org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.common.rev151017.RspName in project netvirt by opendaylight.
the class SfcProvider method getRenderedServicePath.
public Optional<RenderedServicePath> getRenderedServicePath(String rspName) {
RenderedServicePathKey renderedServicePathKey = new RenderedServicePathKey(new RspName(rspName));
InstanceIdentifier<RenderedServicePath> rspIid = InstanceIdentifier.builder(RenderedServicePaths.class).child(RenderedServicePath.class, renderedServicePathKey).build();
return MDSALUtil.read(dataBroker, LogicalDatastoreType.OPERATIONAL, rspIid).toJavaUtil();
}
Aggregations