2 * Copyright (C) 2014 Red Hat, Inc. and others. 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.ovsdb.openstack.netvirt.translator.iaware;
11 import org.opendaylight.ovsdb.openstack.netvirt.translator.NeutronSecurityGroup;
14 * This interface defines the methods a service that wishes to be aware of Neutron Security Groups needs to implement
17 public interface INeutronSecurityGroupAware {
20 * Services provide this interface method to indicate if the specified security group can be created
22 * @param securityGroup instance of proposed new Neutron Security Group object
24 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
25 * results in the create operation being interrupted and the returned status value reflected in the
28 int canCreateNeutronSecurityGroup(NeutronSecurityGroup securityGroup);
31 * Services provide this interface method for taking action after a security group has been created
33 * @param securityGroup instance of new Neutron Security Group object
35 void neutronSecurityGroupCreated(NeutronSecurityGroup securityGroup);
38 * Services provide this interface method to indicate if the specified security group can be changed using the specified
41 * @param delta updates to the security group object using patch semantics
42 * @param original instance of the Neutron Security Group object to be updated
44 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
45 * results in the update operation being interrupted and the returned status value reflected in the
48 int canUpdateNeutronSecurityGroup(NeutronSecurityGroup delta, NeutronSecurityGroup original);
51 * Services provide this interface method for taking action after a security group has been updated
53 * @param securityGroup instance of modified Neutron Security Group object
55 void neutronSecurityGroupUpdated(NeutronSecurityGroup securityGroup);
58 * Services provide this interface method to indicate if the specified security group can be deleted
60 * @param securityGroup instance of the Neutron Security Group object to be deleted
62 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
63 * results in the delete operation being interrupted and the returned status value reflected in the
66 int canDeleteNeutronSecurityGroup(NeutronSecurityGroup securityGroup);
69 * Services provide this interface method for taking action after a security group has been deleted
71 * @param securityGroup instance of deleted Neutron Security Group object
73 void neutronSecurityGroupDeleted(NeutronSecurityGroup securityGroup);