X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fresource_type.py;h=3a2271a7a4dce8de524a35976a461dc595c02ced;hb=d9000f0859a254f2c3c32f30ed71a143e731e2ff;hp=79b36fd987144bd258ed3b21e6df71b3bc5eed7a;hpb=62f8863960ebd439c714b0ceed204731d9b31266;p=pti%2Fo2.git diff --git a/o2ims/domain/resource_type.py b/o2ims/domain/resource_type.py index 79b36fd..3a2271a 100644 --- a/o2ims/domain/resource_type.py +++ b/o2ims/domain/resource_type.py @@ -1,18 +1,28 @@ -from enum import Enum - - -class ResourceTypeEnum(Enum): - OCLOUD = 1, - RESOURCE_POOL = 2, - DMS = 3, - PSERVER = 11 - PSERVER_CPU = 12 - PSERVER_RAM = 13 - - -class InvalidOcloudState(Exception): - pass - - -class MismatchedModel(Exception): - pass +from enum import Enum + + +class ResourceTypeEnum(Enum): + UNDEFINED = 0 + OCLOUD = 1 + RESOURCE_POOL = 2 + DMS = 3 + PSERVER = 11 + PSERVER_CPU = 12 + PSERVER_RAM = 13 + PSERVER_IF = 14 + PSERVER_IF_PORT = 15 + PSERVER_ETH = 16 + + +class ResourceKindEnum(Enum): + UNDEFINED = 0 + PHYSICAL = 1 + LOGICAL = 2 + + +class InvalidOcloudState(Exception): + pass + + +class MismatchedModel(Exception): + pass