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 Firewall objects
17 public interface INeutronFirewallCRUD {
19 * Applications call this interface method to determine if a particular
20 *Firewall object exists
23 * UUID of the Firewall object
27 boolean neutronFirewallExists(String uuid);
30 * Applications call this interface method to return if a particular
31 * Firewall object exists
34 * UUID of the Firewall object
35 * @return {@link org.opendaylight.neutron.spi.NeutronFirewall}
36 * OpenStackFirewall class
39 NeutronFirewall getNeutronFirewall(String uuid);
42 * Applications call this interface method to return all Firewall objects
44 * @return List of OpenStackNetworks objects
47 List<NeutronFirewall> getAllNeutronFirewalls();
50 * Applications call this interface method to add a Firewall object to the
54 * OpenStackNetwork object
55 * @return boolean on whether the object was added or not
58 boolean addNeutronFirewall(NeutronFirewall input);
61 * Applications call this interface method to remove a Neutron Firewall object to the
65 * identifier for the Firewall object
66 * @return boolean on whether the object was removed or not
69 boolean removeNeutronFirewall(String uuid);
72 * Applications call this interface method to edit a Firewall object
75 * identifier of the Firewall object
77 * OpenStackFirewall object containing changes to apply
78 * @return boolean on whether the object was updated or not
81 boolean updateNeutronFirewall(String uuid, NeutronFirewall delta);
84 * Applications call this interface method to see if a MAC address is in use
87 * identifier of the Firewall object
88 * @return boolean on whether the macAddress is already associated with a
92 boolean neutronFirewallInUse(String uuid);