Using RAD Enumeration Types in Python

To access an enumerated type, import the binding and interact with the enumeration.

Example 2-39 Python Language – Using RAD Enumerations

>>> import rad.bindings.com.oracle.solaris.rad.zonemgr as zonemgr
>>> print zonemgr.ErrorCode.NONE
NONE
>>> print zonemgr.ErrorCode.COMMAND_ERROR
COMMAND_ERROR
>>>