73d085cc1ee580313cc35811e4ac020dfcba4631
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronTapFlowCRUD.java
1 /*
2  * Copyright (c) 2017 Intel Corporation.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.neutron.spi;
9
10 /**
11  * This interface defines the methods for CRUD of NB OpenStack Tap Flow objects.
12  */
13 public interface INeutronTapFlowCRUD extends INeutronCRUD<NeutronTapFlow> {
14
15     /**
16      * Applications call this interface method to check if a NeutronTapFlow object exists.
17      *
18      * @param tapServiceUUID
19      *            UUID of Tap Service
20      * @param tapFlowUUID
21      *            UUID of Tap Flow
22      * @return boolean on whether the object was added or not
23      */
24
25     boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID);
26
27     /**
28      * Applications call this interface method to get a NeutronTapFlow object.
29      *
30      * @param tapServiceUUID
31      *            UUID of Tap Service
32      * @param tapFlowUUID
33      *            UUID of Tap Flow
34      * @return NeutronTapFlow object
35      */
36
37     NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID);
38
39     /**
40      * Applications call this interface method to add a NeutronTapFlow object to the
41      * concurrent map.
42      *
43      * @param input
44      *            OpenStackNetwork object
45      * @return boolean on whether the object was added or not
46      */
47
48     boolean addTapFlow(NeutronTapFlow input);
49
50     /**
51      * Applications call this interface method to update a NeutronTapFlow object to the
52      * concurrent map.
53      *
54      * @param input
55      *            OpenStackNetwork object
56      * @return boolean on whether the object was added or not
57      */
58
59     boolean updateTapFlow(NeutronTapFlow input);
60
61     /**
62      * Applications call this interface method to delete a NeutronTapFlow object.
63      *
64      * @param tapServiceUUID
65      *            UUID of Tap Service
66      * @param tapFlowUUID
67      *            UUID of Tap Flow
68      * @return boolean on whether the object was added or not
69      */
70
71     boolean deleteTapFlow(String tapServiceUUID, String tapFlowUUID);
72 }