InstanceIdentifier<Rfc7285IrdMetadata> iid;
iid = SimpleIrdUtils.getInstanceIID(instanceId).augmentation(Rfc7285IrdMetadata.class);
- Optional<Rfc7285IrdMetadata> metadata = rx.read(LogicalDatastoreType.OPERATIONAL, iid).get();
+ Optional<Rfc7285IrdMetadata> metadata = Optional.absent();
+ try {
+ metadata = rx.read(LogicalDatastoreType.OPERATIONAL, iid).get();
+ } catch (InterruptedException | ExecutionException e) {
+ throw e;
+ } catch (Exception e) {
+ }
if (metadata.isPresent()) {
return metadata.get().getMeta().getDefaultNetworkMap();
yang-ext:context-instance "service-context";
leaf-list "dependency" {
+ description
+ "Should point to a ../../../resource/context-tag instance (in the same context)";
type instance-identifier {
require-instance true;
- description
- "Should point to a ../../../resource/context-tag instance (in the same context)";
}
}
}