OSMENG-1092 Base Class for Delete NS Record Activity
[osm/common.git] / osm_common / temporal / states.py
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 from enum import auto, IntEnum
19
20
21 class VimState(IntEnum):
22 PROCESSING = auto()
23 ENABLED = auto()
24 ERROR = auto()
25
26
27 class VimOperationState(IntEnum):
28 COMPLETED = auto()
29 FAILED = auto()
30
31
32 class NsState(IntEnum):
33 PROCESSING = auto()
34 INSTANTIATED = auto()
35 ERROR = auto()
36
37
38 class VnfLcmOperationState(IntEnum):
39 PROCESSING = auto()
40 COMPLETED = auto()
41 FAILED = auto()
42
43
44 class VnfInstantiationState(IntEnum):
45 NOT_INSTANTIATED = auto()
46 INSTANTIATED = auto()
47
48
49 class VnfState(IntEnum):
50 STOPPED = auto()
51 STARTED = auto()
52
53
54 class LcmOperationState(IntEnum):
55 PROCESSING = auto()
56 COMPLETED = auto()
57 FAILED = auto()