use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.
the class BgpUtil method delete.
public <T extends DataObject> void delete(final InstanceIdentifier<T> path) {
ActionableResource actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
bgpResourcesBufferQ.add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.
the class BgpRouteVrfEntryHandler method createFlows.
@Override
public void createFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
ActionableResource actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
vrfEntryBufferQ.add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.
the class BgpRouteVrfEntryHandler method updateFlows.
@Override
public void updateFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry original, VrfEntry update, String rd) {
ActionableResource actResource = new ActionableResourceImpl(rd + update.getDestPrefix());
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(update);
actResource.setOldInstance(original);
vrfEntryBufferQ.add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.
the class BgpRouteVrfEntryHandler method removeFlows.
@Override
public void removeFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
ActionableResource actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
vrfEntryBufferQ.add(actResource);
}
use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.
the class BgpUtil method write.
public <T extends DataObject> void write(final InstanceIdentifier<T> path, final T data) {
ActionableResource actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
bgpResourcesBufferQ.add(actResource);
}
Aggregations