2 * Copyright (C) 2014 Red Hat, Inc. 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;
14 * This interface defines the methods for CRUD of NB OpenStack LoadBalancerPool objects
18 public interface INeutronLoadBalancerPoolCRUD
19 extends INeutronCRUD<NeutronLoadBalancerPool> {
21 * Applications call this interface method to determine if a particular
22 *LoadBalancerPool object exists
25 * UUID of the LoadBalancerPool object
29 boolean neutronLoadBalancerPoolExists(String uuid);
32 * Applications call this interface method to return if a particular
33 * LoadBalancerPool object exists
36 * UUID of the LoadBalancerPool object
37 * @return {@link NeutronLoadBalancerPool}
38 * OpenStackLoadBalancerPool class
41 NeutronLoadBalancerPool getNeutronLoadBalancerPool(String uuid);
44 * Applications call this interface method to return all LoadBalancerPool objects
46 * @return List of OpenStackNetworks objects
49 List<NeutronLoadBalancerPool> getAllNeutronLoadBalancerPools();
52 * Applications call this interface method to add a LoadBalancerPool object to the
56 * OpenStackNetwork object
57 * @return boolean on whether the object was added or not
60 boolean addNeutronLoadBalancerPool(NeutronLoadBalancerPool input);
63 * Applications call this interface method to remove a Neutron LoadBalancerPool object to the
67 * identifier for the LoadBalancerPool object
68 * @return boolean on whether the object was removed or not
71 boolean removeNeutronLoadBalancerPool(String uuid);
74 * Applications call this interface method to edit a LoadBalancerPool object
77 * identifier of the LoadBalancerPool object
79 * OpenStackLoadBalancerPool object containing changes to apply
80 * @return boolean on whether the object was updated or not
83 boolean updateNeutronLoadBalancerPool(String uuid, NeutronLoadBalancerPool delta);
86 * Applications call this interface method to see if a MAC address is in use
89 * identifier of the LoadBalancerPool object
90 * @return boolean on whether the macAddress is already associated with a
94 boolean neutronLoadBalancerPoolInUse(String uuid);
97 * Applications call this interface method to determine if a particular
98 *NeutronLoadBalancerPoolMember object exists
101 * UUID of the NeutronLoadBalancerPool object
103 * UUID of the NeutronLoadBalancerPoolMember object
107 boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid);
110 * Applications call this interface method to return if a particular
111 * NeutronLoadBalancerPoolMember object exists
114 * UUID of the NeutronLoadBalancerPool object
116 * UUID of the NeutronLoadBalancerPoolMember object
117 * @return {@link org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember}
118 * OpenStackNeutronLoadBalancerPoolMember class
121 NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
124 * Applications call this interface method to return all NeutronLoadBalancerPoolMember objects
127 * UUID of the NeutronLoadBalancerPool object
128 * @return List of OpenStackNetworks objects
131 List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid);
134 * Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the
138 * UUID of the NeutronLoadBalancerPool object
140 * OpenStackNetwork object
141 * @return boolean on whether the object was added or not
144 boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input);
147 * Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the
151 * UUID of the NeutronLoadBalancerPool object
153 * identifier for the NeutronLoadBalancerPoolMember object
154 * @return boolean on whether the object was removed or not
157 boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid);
160 * Applications call this interface method to edit a NeutronLoadBalancerPoolMember object
163 * identifier of the NeutronLoadBalancerPool object
165 * identifier of the NeutronLoadBalancerPoolMember object
167 * OpenStackNeutronLoadBalancerPoolMember object containing changes to apply
168 * @return boolean on whether the object was updated or not
171 boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta);
174 * Applications call this interface method to see if a MAC address is in use
177 * identifier of the NeutronLoadBalancerPool object
179 * identifier of the NeutronLoadBalancerPoolMember object
180 * @return boolean on whether the macAddress is already associated with a
184 boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String uuid);