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;
13 * This interface defines the methods a service that wishes to be aware of Neutron Security Groups needs to implement
15 * @deprecated Replaced by {@link org.opendaylight.neutron.neutron.spi.INeutronSecurityGroupAware}
19 public interface INeutronSecurityGroupAware {
22 * Services provide this interface method to indicate if the specified security group can be created
24 * @param securityGroup instance of proposed new Neutron Security Group object
26 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
27 * results in the create operation being interrupted and the returned status value reflected in the
30 public int canCreateNeutronSecurityGroup(NeutronSecurityGroup securityGroup);
33 * Services provide this interface method for taking action after a security group has been created
35 * @param securityGroup instance of new Neutron Security Group object
38 public void neutronSecurityGroupCreated(NeutronSecurityGroup securityGroup);
41 * Services provide this interface method to indicate if the specified security group can be changed using the specified
44 * @param delta updates to the security group object using patch semantics
45 * @param original instance of the Neutron Security Group object to be updated
47 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
48 * results in the update operation being interrupted and the returned status value reflected in the
51 public int canUpdateNeutronSecurityGroup(NeutronSecurityGroup delta, NeutronSecurityGroup original);
54 * Services provide this interface method for taking action after a security group has been updated
56 * @param securityGroup instance of modified Neutron Security Group object
59 public void neutronSecurityGroupUpdated(NeutronSecurityGroup securityGroup);
62 * Services provide this interface method to indicate if the specified security group can be deleted
64 * @param securityGroup instance of the Neutron Security Group object to be deleted
66 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
67 * results in the delete operation being interrupted and the returned status value reflected in the
70 public int canDeleteNeutronSecurityGroup(NeutronSecurityGroup securityGroup);
73 * Services provide this interface method for taking action after a security group has been deleted
75 * @param securityGroup instance of deleted Neutron Security Group object
78 public void neutronSecurityGroupDeleted(NeutronSecurityGroup securityGroup);