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.neutron.spi;
11 import java.util.List;
14 * This interface defines the methods for CRUD of NB Router objects
18 public interface INeutronRouterCRUD
19 extends INeutronCRUD<NeutronRouter> {
21 * Applications call this interface method to determine if a particular
22 * Router object exists
25 * UUID of the Router object
29 boolean routerExists(String uuid);
32 * Applications call this interface method to return if a particular
33 * Router object exists
36 * UUID of the Router object
37 * @return {@link org.opendaylight.neutron.spi.NeutronRouter}
38 * OpenStack Router class
41 NeutronRouter getRouter(String uuid);
44 * Applications call this interface method to return all Router objects
46 * @return List of OpenStackRouters objects
49 List<NeutronRouter> getAllRouters();
52 * Applications call this interface method to add a Router object to the
56 * OpenStackRouter object
57 * @return boolean on whether the object was added or not
60 boolean addRouter(NeutronRouter input);
63 * Applications call this interface method to remove a Router object to the
67 * identifier for the Router object
68 * @return boolean on whether the object was removed or not
71 boolean removeRouter(String uuid);
74 * Applications call this interface method to edit a Router object
77 * identifier of the Router object
79 * OpenStackRouter object containing changes to apply
80 * @return boolean on whether the object was updated or not
83 boolean updateRouter(String uuid, NeutronRouter delta);
86 * Applications call this interface method to check if a router is in use
89 * identifier of the Router object
90 * @return boolean on whether the router is in use or not
93 boolean routerInUse(String routerUUID);