blob: 1c4c896d6d3bc28494daed985ba0f14d7575b37a [file] [log] [blame]
Dario Faccin989602b2023-06-20 16:12:29 +02001#######################################################################################
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
18from enum import auto, IntEnum
19
20
21class VimState(IntEnum):
22 PROCESSING = auto()
23 ENABLED = auto()
24 ERROR = auto()
25
26
27class VimOperationState(IntEnum):
28 COMPLETED = auto()
29 FAILED = auto()
30
31
32class NsState(IntEnum):
33 PROCESSING = auto()
34 INSTANTIATED = auto()
35 ERROR = auto()
36
37
38class VnfLcmOperationState(IntEnum):
39 PROCESSING = auto()
40 COMPLETED = auto()
41 FAILED = auto()
42
43
44class VnfInstantiationState(IntEnum):
45 NOT_INSTANTIATED = auto()
46 INSTANTIATED = auto()
47
48
49class VnfState(IntEnum):
50 STOPPED = auto()
51 STARTED = auto()
52
53
54class LcmOperationState(IntEnum):
55 PROCESSING = auto()
56 COMPLETED = auto()
57 FAILED = auto()