/**
*
- * @param regImp
+ * @param regImp the endpoint augmentation
* @throws Exception
*/
public static void unregister(EpRendererAugmentation regImp)
/**
* Constructor
*
- * @param dataProvider
- * @param rpcRegistry
- * @param executor
+ * @param dataProvider the {@link DataBroker}
+ * @param rpcRegistry the {@link RpcProviderRegistry}
+ * @param executor the {@link ScheduledExecutorService}
*/
private EndpointRpcRegistry(DataBroker dataProvider,
RpcProviderRegistry rpcRegistry,
Class<? extends Augmentation<Endpoint>> augmentationType = (Class<? extends Augmentation<Endpoint>>) getAugmentationContextType(augmentation);
eb.addAugmentation(augmentationType, augmentation);
}
- } catch (Throwable t) {
+ } catch (Exception e) {
LOG.warn("Endpoint Augmentation error while processing "
- + entry.getKey() + ". Reason: ", t);
+ + entry.getKey() + ". Reason: ", e);
}
}
return eb;
Class<? extends Augmentation<EndpointL3>> augmentationType = (Class<? extends Augmentation<EndpointL3>>) getAugmentationContextType(augmentation);
eb.addAugmentation(augmentationType, augmentation);
}
- } catch (Throwable t) {
+ } catch (Exception e) {
LOG.warn("L3 endpoint Augmentation error while processing "
- + entry.getKey() + ". Reason: ", t);
+ + entry.getKey() + ". Reason: ", e);
}
}
return eb;
.entrySet()) {
try {
entry.getValue().buildL3PrefixEndpointAugmentation(eb, input);
- } catch (Throwable t) {
+ } catch (Exception e) {
LOG.warn("L3 endpoint Augmentation error while processing "
- + entry.getKey() + ". Reason: ", t);
+ + entry.getKey() + ". Reason: ", e);
}
}
return eb;
InstanceIdentifier.builder(Endpoints.class)
.child(Endpoint.class, key)
.build();
- t.put(LogicalDatastoreType.OPERATIONAL, iid, ep);
+ t.put(LogicalDatastoreType.OPERATIONAL, iid, ep, true);
}
if (input.getL3Address() != null) {
for (L3Address l3addr : input.getL3Address()) {
InstanceIdentifier.builder(Endpoints.class)
.child(EndpointL3.class, key3)
.build();
- t.put(LogicalDatastoreType.OPERATIONAL, iid_l3, ep3);
+ t.put(LogicalDatastoreType.OPERATIONAL, iid_l3, ep3, true);
}
}
ListenableFuture<Void> r = t.submit();