*/
boolean update(String uuid, T delta);
-
- /**
- * Applications call this interface method to determine if a Neutron object
- * is use
- *
- * @param uuid
- * identifier of the neutron object
- *
- * @return boolean on whether the neutron is in use or not
- */
-
- boolean inUse(String uuid);
}
}
return false;
}
-
- @Override
- public boolean inUse(String uuid) {
- return false;
- }
}
return bgpvpns.getBgpvpn();
}
- @Override
- public boolean inUse(String uuid) {
- return !exists(uuid);
- }
-
@Override
protected NeutronBgpvpn fromMd(Bgpvpn bgpvpn) {
final NeutronBgpvpn result = new NeutronBgpvpn();
return l2gatewayConnections.getL2gatewayConnection();
}
- @Override
- public boolean inUse(String l2gatewayConnectionID) {
- return !exists(l2gatewayConnectionID);
- }
-
@Override
protected NeutronL2gatewayConnection fromMd(L2gatewayConnection l2gatewayConnection) {
final NeutronL2gatewayConnection result = new NeutronL2gatewayConnection();
return l2gateways.getL2gateway();
}
- @Override
- public boolean inUse(String l2gatewayID) {
- return !exists(l2gatewayID);
- }
-
@Override
protected NeutronL2gateway fromMd(L2gateway l2gateway) {
final NeutronL2gateway result = new NeutronL2gateway();
return connections.getIpsecsiteconnection();
}
- @Override
- public boolean inUse(String policyID) {
- return !exists(policyID);
- }
-
protected NeutronVPNIPSECSiteConnection fromMd(Ipsecsiteconnection ipsecSiteConnection) {
final NeutronVPNIPSECSiteConnection answer = new NeutronVPNIPSECSiteConnection();
fromMdAdminAttributes(ipsecSiteConnection, answer);
return services.getVpnservice();
}
- @Override
- public boolean inUse(String uuid) {
- return !exists(uuid);
- }
-
protected NeutronVPNService fromMd(Vpnservice vpnService) {
final NeutronVPNService answer = new NeutronVPNService();
fromMdAdminAttributes(vpnService, answer);