2 * Copyright (C) 2015 IBM Corporation. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.spi;
11 import java.util.List;
13 public interface INeutronVPNIKEPolicyCRUD {
16 * Applications call this interface method to determine if a particular
17 *NeutronVPNIKEPolicy object exists
20 * UUID of the NeutronVPNIKEPolicy object
24 public boolean neutronVPNIKEPolicyExists(String uuid);
27 * Applications call this interface method to return if a particular
28 * NeutronVPNIKEPolicy object exists
31 * UUID of the NeutronVPNIKEPolicy object
32 * @return {@link org.opendaylight.neutron.spi.NeutronVPNIKEPolicy}
33 * OpenStackNeutronVPNIKEPolicy class
36 public NeutronVPNIKEPolicy getNeutronVPNIKEPolicy(String uuid);
39 * Applications call this interface method to return all NeutronVPNIKEPolicy objects
41 * @return List of OpenStackNetworks objects
44 public List<NeutronVPNIKEPolicy> getAllNeutronVPNIKEPolicies();
47 * Applications call this interface method to add a NeutronVPNIKEPolicy object to the
51 * OpenStackNetwork object
52 * @return boolean on whether the object was added or not
55 public boolean addNeutronVPNIKEPolicy(NeutronVPNIKEPolicy input);
58 * Applications call this interface method to remove a Neutron NeutronVPNIKEPolicy object to the
62 * identifier for the NeutronVPNIKEPolicy object
63 * @return boolean on whether the object was removed or not
66 public boolean removeNeutronVPNIKEPolicy(String uuid);
69 * Applications call this interface method to edit a NeutronVPNIKEPolicy object
72 * identifier of the NeutronVPNIKEPolicy object
74 * OpenStackNeutronVPNIKEPolicy object containing changes to apply
75 * @return boolean on whether the object was updated or not
78 public boolean updateNeutronVPNIKEPolicy(String uuid, NeutronVPNIKEPolicy delta);
81 * Applications call this interface method to see if a MAC address is in use
84 * identifier of the NeutronVPNIKEPolicy object
85 * @return boolean on whether the macAddress is already associated with a
89 public boolean neutronVPNIKEPolicyInUse(String uuid);