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 Group objects
17 * @deprecated Replaced by {@link org.opendaylight.neutron.neutron.spi.INeutronSecurityGroupCRUD}
21 public interface INeutronSecurityGroupCRUD {
23 * Applications call this interface method to determine if a particular
24 * Security Group object exists
26 * @param uuid UUID of the Security Group object
30 public boolean neutronSecurityGroupExists(String uuid);
33 * Applications call this interface method to return if a particular
34 * Security Group object exists
36 * @param uuid UUID of the Security Group object
37 * @return {@link org.opendaylight.controller.networkconfig.neutron.NeutronSecurityGroup.OpenStackSecurity Groups}
38 * OpenStack Security Group class
41 public NeutronSecurityGroup getNeutronSecurityGroup(String uuid);
44 * Applications call this interface method to return all Security Group objects
46 * @return List of OpenStackSecurity Groups objects
49 public List<NeutronSecurityGroup> getAllNeutronSecurityGroups();
52 * Applications call this interface method to add a Security Group object to the
55 * @param input OpenStackSecurity Group object
56 * @return boolean on whether the object was added or not
59 public boolean addNeutronSecurityGroup(NeutronSecurityGroup input);
62 * Applications call this interface method to remove a Neutron Security Group object to the
65 * @param uuid identifier for the security group object
66 * @return boolean on whether the object was removed or not
69 public boolean removeNeutronSecurityGroup(String uuid);
72 * Applications call this interface method to edit a Security Group object
74 * @param uuid identifier of the security group object
75 * @param delta OpenStackSecurity Group object containing changes to apply
76 * @return boolean on whether the object was updated or not
79 public boolean updateNeutronSecurityGroup(String uuid, NeutronSecurityGroup delta);
82 * Applications call this interface method to see if a MAC address is in use
84 * @param uuid identifier of the security group object
85 * @return boolean on whether the Security Groups is already in use
88 public boolean neutronSecurityGroupInUse(String uuid);