X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fresource_type.py;h=076d6aed1a0d2055d34e028a7e3c0df93350b369;hb=102f6523af2b9490181be8aca42af7696269e2eb;hp=f94e6886023f3513ac376aecf9af5641e2343f0a;hpb=f73c8e3b01b8f5b7438ba544870e06d8f30cdea0;p=pti%2Fo2.git diff --git a/o2ims/domain/resource_type.py b/o2ims/domain/resource_type.py index f94e688..076d6ae 100644 --- a/o2ims/domain/resource_type.py +++ b/o2ims/domain/resource_type.py @@ -1,20 +1,30 @@ -from enum import Enum - - -class ResourceTypeEnum(Enum): - OCLOUD = 1 - RESOURCE_POOL = 2 - DMS = 3 - PSERVER = 11 - PSERVER_CPU = 12 - PSERVER_RAM = 13 - PSERVER_PORT = 14 - PSERVER_IF = 15 - - -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 + PSERVER_PCI_DEV = 17 + PSERVER_ACC = 18 + + +class ResourceKindEnum(Enum): + UNDEFINED = 0 + PHYSICAL = 1 + LOGICAL = 2 + + +class InvalidOcloudState(Exception): + pass + + +class MismatchedModel(Exception): + pass