Code Review
/
pti
/
o2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Update DeploymentManagerInfo attributes
[pti/o2.git]
/
o2ims
/
domain
/
resource_type.py
1
from enum import Enum
2
3
4
class ResourceTypeEnum(Enum):
5
UNDEFINED = 0
6
OCLOUD = 1
7
RESOURCE_POOL = 2
8
DMS = 3
9
PSERVER = 11
10
PSERVER_CPU = 12
11
PSERVER_RAM = 13
12
PSERVER_IF = 14
13
PSERVER_IF_PORT = 15
14
PSERVER_ETH = 16
15
PSERVER_PCI_DEV = 17
16
PSERVER_ACC = 18
17
PSERVER_LABEL = 19
18
COMPUTE_AGGREGATE = 70
19
NETWORK_AGGREGATE = 80
20
STORAGE_AGGREGATE = 90
21
UNDEFINED_AGGREGATE = 100
22
23
24
class ResourceKindEnum(Enum):
25
UNDEFINED = 0
26
PHYSICAL = 1
27
LOGICAL = 2
28
29
30
class InvalidOcloudState(Exception):
31
pass
32
33
34
class MismatchedModel(Exception):
35
pass