We really do not allow ActionableResource to be modifiable once
built. This uses ActionableResourceImpl instead of the bare interface.
JIRA: GENIUS-281
Change-Id: I35a475b0b3936b303e5e9542216b3d7e2a793ab3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
package org.opendaylight.netvirt.bgpmanager;
import com.google.common.base.Optional;
package org.opendaylight.netvirt.bgpmanager;
import com.google.common.base.Optional;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
}
public <T extends DataObject> void update(final InstanceIdentifier<T> path, final T data) {
}
public <T extends DataObject> void update(final InstanceIdentifier<T> path, final T data) {
- ActionableResource actResource = new ActionableResourceImpl(path.toString());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
}
public <T extends DataObject> void write(final InstanceIdentifier<T> path, final T data) {
}
public <T extends DataObject> void write(final InstanceIdentifier<T> path, final T data) {
- ActionableResource actResource = new ActionableResourceImpl(path.toString());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(data);
}
public <T extends DataObject> void delete(final InstanceIdentifier<T> path) {
}
public <T extends DataObject> void delete(final InstanceIdentifier<T> path) {
- ActionableResource actResource = new ActionableResourceImpl(path.toString());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(path.toString());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(path);
actResource.setInstance(null);
}
void createFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
}
void createFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
- ActionableResource actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
actResource.setAction(ActionableResource.CREATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
}
void removeFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
}
void removeFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry vrfEntry, String rd) {
- ActionableResource actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(rd + vrfEntry.getDestPrefix());
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
actResource.setAction(ActionableResource.DELETE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(vrfEntry);
}
void updateFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry original, VrfEntry update, String rd) {
}
void updateFlows(InstanceIdentifier<VrfEntry> identifier, VrfEntry original, VrfEntry update, String rd) {
- ActionableResource actResource = new ActionableResourceImpl(rd + update.getDestPrefix());
+ ActionableResourceImpl actResource = new ActionableResourceImpl(rd + update.getDestPrefix());
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(update);
actResource.setAction(ActionableResource.UPDATE);
actResource.setInstanceIdentifier(identifier);
actResource.setInstance(update);