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