2 * Copyright (c) 2013, 2015 IBM Corporation 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.NeutronRouter;
12 import org.opendaylight.ovsdb.openstack.netvirt.translator.NeutronRouter_Interface;
15 * This interface defines the methods a service that wishes to be aware of Neutron Routers needs to implement
19 public interface INeutronRouterAware {
22 * Services provide this interface method to indicate if the specified router can be created
25 * instance of proposed new Neutron Router object
27 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
28 * results in the create operation being interrupted and the returned status value reflected in the
31 int canCreateRouter(NeutronRouter router);
34 * Services provide this interface method for taking action after a router has been created
37 * instance of new Neutron Router object
39 void neutronRouterCreated(NeutronRouter router);
42 * Services provide this interface method to indicate if the specified router can be changed using the specified
46 * updates to the router object using patch semantics
48 * instance of the Neutron Router object to be updated
50 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
51 * results in the update operation being interrupted and the returned status value reflected in the
54 int canUpdateRouter(NeutronRouter delta, NeutronRouter original);
57 * Services provide this interface method for taking action after a router has been updated
60 * instance of modified Neutron Router object
62 void neutronRouterUpdated(NeutronRouter router);
65 * Services provide this interface method to indicate if the specified router can be deleted
68 * instance of the Neutron Router object to be deleted
70 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
71 * results in the delete operation being interrupted and the returned status value reflected in the
74 int canDeleteRouter(NeutronRouter router);
77 * Services provide this interface method for taking action after a router has been deleted
80 * instance of deleted Router Network object
82 void neutronRouterDeleted(NeutronRouter router);
85 * Services provide this interface method to indicate if the
86 * specified interface can be attached to the specified router
89 * instance of the base Neutron Router object
90 * @param routerInterface
91 * instance of the NeutronRouter_Interface to be attached to the router
93 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
94 * results in the attach operation being interrupted and the returned status value reflected in the
97 int canAttachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface);
100 * Services provide this interface method for taking action
101 * after an interface has been added to a router
104 * instance of the base Neutron Router object
105 * @param routerInterface
106 * instance of the NeutronRouter_Interface being attached to the router
108 void neutronRouterInterfaceAttached(NeutronRouter router, NeutronRouter_Interface routerInterface);
111 * Services provide this interface method to indicate if the
112 * specified interface can be detached from the specified router
115 * instance of the base Neutron Router object
116 * @param routerInterface
117 * instance of the NeutronRouter_Interface to be detached to the router
119 * the return value is understood to be a HTTP status code. A return value outside of 200 through 299
120 * results in the detach operation being interrupted and the returned status value reflected in the
123 int canDetachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface);
126 * Services provide this interface method for taking action after an interface has been removed from a router
129 * instance of the base Neutron Router object
130 * @param routerInterface
131 * instance of the NeutronRouter_Interface being detached from the router
133 void neutronRouterInterfaceDetached(NeutronRouter router, NeutronRouter_Interface routerInterface);