Debian Codegraph @

neutron_taas/services/taas/service_drivers/__init__.py

raw
1 # Copyright (C) 2016 Midokura SARL.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14
15 import abc
16
17
18 class TaasBaseDriver(metaclass=abc.ABCMeta):
19
20 def __init__(self, service_plugin):
21 self.service_plugin = service_plugin
22
23 @property
24 def service_type(self):
25 pass
26
27 @abc.abstractmethod
28 def create_tap_service_precommit(self, context):
29 pass
30
31 @abc.abstractmethod
32 def delete_tap_service_precommit(self, context):
33 pass
34
35 @abc.abstractmethod
36 def create_tap_flow_precommit(self, context):
37 pass
38
39 @abc.abstractmethod
40 def delete_tap_flow_precommit(self, context):
41 pass
42
43 @abc.abstractmethod
44 def create_tap_service_postcommit(self, context):
45 pass
46
47 @abc.abstractmethod
48 def delete_tap_service_postcommit(self, context):
49 pass
50
51 @abc.abstractmethod
52 def create_tap_flow_postcommit(self, context):
53 pass
54
55 @abc.abstractmethod
56 def delete_tap_flow_postcommit(self, context):
57 pass
58
59 @abc.abstractmethod
60 def create_tap_mirror_precommit(self, context):
61 pass
62
63 @abc.abstractmethod
64 def create_tap_mirror_postcommit(self, context):
65 pass
66
67 @abc.abstractmethod
68 def delete_tap_mirror_precommit(self, context):
69 pass
70
71 @abc.abstractmethod
72 def delete_tap_mirror_postcommit(self, context):
73 pass