use of org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.prefix.set.PrefixSet in project bgpcep by opendaylight.
the class GenericConditionPolicyHandler method loadPrefixSets.
private List<Prefix> loadPrefixSets(final String key) throws ExecutionException, InterruptedException {
final ReadOnlyTransaction tr = this.databroker.newReadOnlyTransaction();
final com.google.common.base.Optional<PrefixSet> result = tr.read(LogicalDatastoreType.CONFIGURATION, PREFIXES_SET_IID.child(PrefixSet.class, new PrefixSetKey(key))).get();
if (!result.isPresent()) {
return Collections.emptyList();
}
return result.get().getPrefix();
}
Aggregations