2 * Copyright (C) 2014 Red Hat, Inc.
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
10 package org.opendaylight.controller.networkconfig.neutron;
12 import java.util.List;
15 * This interface defines the methods for CRUD of NB OpenStack Security Rule objects
18 public interface INeutronSecurityRuleCRUD {
20 * Applications call this interface method to determine if a particular
21 * Security Rule object exists
23 * @param uuid UUID of theSecurity Rule object
27 public boolean neutronSecurityRuleExists(String uuid);
30 * Applications call this interface method to return if a particular
31 * Security Rule object exists
33 * @param uuid UUID of the security rule object
34 * @return {@link org.opendaylight.controller.networkconfig.neutron.NeutronSecurityRule.OpenStackNetworks}
35 * OpenStackSecurity Rule class
38 public NeutronSecurityRule getNeutronSecurityRule(String uuid);
41 * Applications call this interface method to return all Security Rule objects
43 * @return List of OpenStack SecurityRules objects
46 public List<NeutronSecurityRule> getAllNeutronSecurityRules();
49 * Applications call this interface method to add a Security Rule object to the
52 * @param input OpenStack security rule object
53 * @return boolean on whether the object was added or not
56 public boolean addNeutronSecurityRule(NeutronSecurityRule input);
59 * Applications call this interface method to remove a Neutron Security Rule object to the
62 * @param uuid identifier for the security rule object
63 * @return boolean on whether the object was removed or not
66 public boolean removeNeutronSecurityRule(String uuid);
69 * Applications call this interface method to edit aSecurity Rule object
71 * @param uuid identifier of the security rule object
72 * @param delta OpenStackSecurity Rule object containing changes to apply
73 * @return boolean on whether the object was updated or not
76 public boolean updateNeutronSecurityRule(String uuid, NeutronSecurityRule delta);
79 * Applications call this interface method to see if a MAC address is in use
81 * @param uuid identifier of the security rule object
82 * @return boolean on whether the macAddress is already associated with a
86 public boolean neutronSecurityRuleInUse(String uuid);