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 network objects
18 public interface INeutronNetworkCRUD
19 extends INeutronCRUD<NeutronNetwork> {
21 * Applications call this interface method to determine if a particular
22 * Network object exists
25 * UUID of the Network object
29 boolean networkExists(String uuid);
32 * Applications call this interface method to return if a particular
33 * Network object exists
36 * UUID of the Network object
37 * @return {@link org.opendaylight.neutron.spi.NeutronNetwork}
38 * OpenStack Network class
41 NeutronNetwork getNetwork(String uuid);
44 * Applications call this interface method to return all Network objects
46 * @return List of OpenStackNetworks objects
49 List<NeutronNetwork> getAllNetworks();
52 * Applications call this interface method to add a Network object to the
56 * OpenStackNetwork object
57 * @return boolean on whether the object was added or not
60 boolean addNetwork(NeutronNetwork input);
63 * Applications call this interface method to remove a Network object to the
67 * identifier for the network object
68 * @return boolean on whether the object was removed or not
71 boolean removeNetwork(String uuid);
74 * Applications call this interface method to edit a Network object
77 * identifier of the network object
79 * OpenStackNetwork object containing changes to apply
80 * @return boolean on whether the object was updated or not
83 boolean updateNetwork(String uuid, NeutronNetwork delta);
86 * Applications call this interface method to determine if a Network object
90 * identifier of the network object
92 * @return boolean on whether the network is in use or not
95 boolean networkInUse(String netUUID);