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
8 package org.opendaylight.neutron.spi;
10 import java.util.List;
11 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
12 import org.opendaylight.yangtools.yang.common.OperationFailedException;
15 * This interface defines the methods for CRUD of NB OpenStack LoadBalancerPool objects.
17 public interface INeutronLoadBalancerPoolCRUD extends INeutronCRUD<NeutronLoadBalancerPool> {
20 * Applications call this interface method to determine if a particular
21 * NeutronLoadBalancerPoolMember object exists.
24 * UUID of the NeutronLoadBalancerPool object
26 * UUID of the NeutronLoadBalancerPoolMember object
28 * @throws ReadFailedException if the read failed
30 boolean neutronLoadBalancerPoolMemberExists(String poolUuid, String uuid) throws ReadFailedException;
33 * Applications call this interface method to return if a particular
34 * NeutronLoadBalancerPoolMember object exists.
37 * UUID of the NeutronLoadBalancerPool object
39 * UUID of the NeutronLoadBalancerPoolMember object
40 * @return {@link org.opendaylight.neutron.spi.NeutronLoadBalancerPoolMember}
41 * OpenStackNeutronLoadBalancerPoolMember class
42 * @throws ReadFailedException if the read failed
44 NeutronLoadBalancerPoolMember getNeutronLoadBalancerPoolMember(String poolUuid, String uuid)
45 throws ReadFailedException;
48 * Applications call this interface method to return all NeutronLoadBalancerPoolMember objects.
51 * UUID of the NeutronLoadBalancerPool object
52 * @return List of OpenStackNetworks objects
53 * @throws ReadFailedException if the read failed
55 List<NeutronLoadBalancerPoolMember> getAllNeutronLoadBalancerPoolMembers(String poolUuid)
56 throws ReadFailedException;
59 * Applications call this interface method to add a NeutronLoadBalancerPoolMember object to the
63 * UUID of the NeutronLoadBalancerPool object
65 * OpenStackNetwork object
66 * @return boolean on whether the object was added or not
67 * @throws OperationFailedException if the read or write failed
69 boolean addNeutronLoadBalancerPoolMember(String poolUuid, NeutronLoadBalancerPoolMember input)
70 throws OperationFailedException;
73 * Applications call this interface method to remove a Neutron NeutronLoadBalancerPoolMember object to the
77 * UUID of the NeutronLoadBalancerPool object
79 * identifier for the NeutronLoadBalancerPoolMember object
80 * @return boolean on whether the object was removed or not
81 * @throws OperationFailedException if the read or write failed
83 boolean removeNeutronLoadBalancerPoolMember(String poolUuid, String uuid) throws OperationFailedException;
86 * Applications call this interface method to edit a NeutronLoadBalancerPoolMember object.
89 * identifier of the NeutronLoadBalancerPool object
91 * identifier of the NeutronLoadBalancerPoolMember object
93 * OpenStackNeutronLoadBalancerPoolMember object containing changes to apply
94 * @return boolean on whether the object was updated or not
95 * @throws OperationFailedException if the read or write operation failed
97 boolean updateNeutronLoadBalancerPoolMember(String poolUuid, String uuid, NeutronLoadBalancerPoolMember delta)
98 throws OperationFailedException;
101 * Applications call this interface method to see if a MAC address is in use.
104 * identifier of the NeutronLoadBalancerPool object
106 * identifier of the NeutronLoadBalancerPoolMember object
107 * @return boolean on whether the macAddress is already associated with a
109 * @throws ReadFailedException if the read operation failed
111 boolean neutronLoadBalancerPoolMemberInUse(String poolUuid, String uuid) throws ReadFailedException;