Code Review
/
pti
/
o2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fix INF-378 inventory subscription filter upgrade
[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
COMPUTE_AGGREGATE = 70
18
NETWORK_AGGREGATE = 80
19
STORAGE_AGGREGATE = 90
20
UNDEFINED_AGGREGATE = 100
21
22
23
class ResourceKindEnum(Enum):
24
UNDEFINED = 0
25
PHYSICAL = 1
26
LOGICAL = 2
27
28
29
class InvalidOcloudState(Exception):
30
pass
31
32
33
class MismatchedModel(Exception):
34
pass