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-342 refactor deploymentManager profile data
[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
18
19
class ResourceKindEnum(Enum):
20
UNDEFINED = 0
21
PHYSICAL = 1
22
LOGICAL = 2
23
24
25
class InvalidOcloudState(Exception):
26
pass
27
28
29
class MismatchedModel(Exception):
30
pass