netlab.enums¶
Netlab enums.
- class netlab.enums.AccountType(value)¶
Account type.
- ADMIN = 'Z'¶
Admin
- INSTRUCTOR = 'I'¶
Instructor
- STUDENT = 'S'¶
Student
- class netlab.enums.ClassEmailLogs(value)¶
Email reservation logs for real equipment pods.
- INSTRUCTOR = 'P'¶
Email to primary instructor.
- NO = 'N'¶
Don’t email logs.
- class netlab.enums.ClassExtensionSlots(value)¶
The number of times a reservation can be extended.
- COMMUNITY = -1¶
Use the community setting.
- class netlab.enums.ClassLabLimit(value)¶
Lab limit settings.
- ENFORCE = 'E'¶
Enforce class lab limit.
- INSTRUCTOR = 'I'¶
Instructor override.
- class netlab.enums.CloneStorageAllocation(value)¶
How to allocate VM image.
- ONDEMAND = 'ONDEMAND'¶
Allocate on demand.
- PREALLOCATED = 'PREALLOCATED'¶
Preallocate.
- class netlab.enums.CloneType(value)¶
How to clone.
- FULL = 'FULL'¶
Complete copy of the virtual machine.
- LINKED = 'LINKED'¶
Delta of a full virtual machine.
- class netlab.enums.CommunityExtensionSlots(value)¶
The number of times a reservation can be extended.
- UNLIMITED = -1¶
Allow unlimited extensions.
- class netlab.enums.HDRSeverity(value)¶
- ERROR = 2¶
Show FATAL warnings. Level 2.
- FATAL = 1¶
Show FATAL warnings. Level 1.
- INFO = 5¶
Show FATAL warnings. Level 5.
- NONE = 0¶
Show no warnings.
- SUCCESS = 4¶
Show FATAL warnings. Level 4.
- TRACE0 = 6¶
Show FATAL warnings. Level 6.
- TRACE1 = 7¶
Show FATAL warnings. Level 7.
- TRACE2 = 8¶
Show FATAL warnings. Level 8.
- WARN = 3¶
Show FATAL warnings. Level 3.
- class netlab.enums.HDRStatus(value)¶
An enumeration.
- class netlab.enums.InitConfig(value)¶
Initial configuration.
- EXERCISE = 'E'¶
Load default for exercise (if any).
- LAST = 'L'¶
Load last saved config (if any).
- NONE = 'N'¶
No configs loaded.
- class netlab.enums.PCType(value)¶
PC Type.
- ABSENT = 'ABSENT'¶
PC is absent.
- AVMI = 'AVMI'¶
PC is in virtual machine inventory.
- class netlab.enums.PodAdminState(value)¶
This enumeration describes the administrative states of a pod.
The administrative state is the state that is desired, not necessarily the current running state (
netlab.enums.PodAdminState).- ACTIVE_INIT = 'ACTIVE_INIT'¶
Pod is active and initializing.
- ACTIVE_LAB = 'ACTIVE_LAB'¶
Pod is active and available for user interaction.
- ACTIVE_LOAD = 'ACTIVE_LOAD'¶
Pod is active and loading configuration.
- ACTIVE_POST = 'ACTIVE_POST'¶
Pod is active but no longer available for interaction.
- ACTIVE_SAVE = 'ACTIVE_SAVE'¶
Pod is active and saving state.
- ACTIVE_TERM = 'ACTIVE_TERM'¶
Pod is active and cleaning up.
- CLONING = 'CLONING'¶
Pod is in the process of being cloned.
- OFFLINE = 'OFFLINE'¶
Pod is offline and idle.
- ONLINE = 'ONLINE'¶
Pod is online and idle.
- RESUME = 'RESUME'¶
Pod is resuming from a suspended state.
- SUSPENDED = 'SUSPENDED'¶
Pod is suspended due to errors.
- class netlab.enums.PodCategory(value)¶
Pod category type.
- EPHEMERAL_VM = 'EV'¶
Ephemeral VM Pod
- MASTER_VM = 'MV'¶
Master VM Pod
- NORMAL_VM = 'NV'¶
Normal VM Pod
- PERSISTENT_VM = 'PV'¶
Persistent VM Pod
- REAL_EQUIPMENT = 'RE'¶
Real Equipment Pod (i.e. Cisco Equipment)
- class netlab.enums.PodCurrentState(value)¶
This enumeration describes the possible running states of a pod.
- ACTIVE_INIT = 'ACTIVE_INIT'¶
Pod is active and initializing.
- ACTIVE_LAB = 'ACTIVE_LAB'¶
Pod is active and available for user interaction.
- ACTIVE_LOAD = 'ACTIVE_LOAD'¶
Pod is active and loading configuration.
- ACTIVE_POST = 'ACTIVE_POST'¶
Pod is active but no longer available for interaction.
- ACTIVE_SAVE = 'ACTIVE_SAVE'¶
Pod is active and saving state.
- ACTIVE_TERM = 'ACTIVE_TERM'¶
Pod is active and cleaning up.
- CLONING = 'CLONING'¶
Pod is in the process of being cloned.
- OFFLINE = 'OFFLINE'¶
Pod is offline and idle.
- ONLINE = 'ONLINE'¶
Pod is online and idle.
- RESUME = 'RESUME'¶
Pod is resuming from a suspended state.
- SUSPENDED = 'SUSPENDED'¶
Pod is suspended due to errors.
- class netlab.enums.PodState(value)¶
PC Pod State
- OFFLINE = 'OFFLINE'¶
Offline
- ONLINE = 'ONLINE'¶
Online.
- RESUME = 'RESUME'¶
Resume
- class netlab.enums.PowerState(value)¶
Remote PC power state change.
- GUEST_CRASHED = 'GUEST_CRASHED'¶
Guest O/S has crashed
- GUEST_REBOOT = 'GUEST_REBOOT'¶
Guest O/S reboot started (graceful reboot)
- GUEST_SHUTDOWN = 'GUEST_SHUTDOWN'¶
Guest O/S shutdown started (graceful shutdown)
- POWERED_OFF = 'POWER_OFF'¶
Remote PC has powered off.
- POWERED_ON = 'POWERED_ON'¶
Remote PC has powered on.
- RESET_STARTED = 'RESET_STARTED'¶
Remote PC reset started (hard reset)
- RESUME_STARTED = 'RESUME_STARTED'¶
Remote PC resume started (from vmware suspended state)
- SUSPENDED = 'SUSPENDED'¶
Remote PC has suspended (vmware suspended)
- SUSPEND_STARTED = 'SUSPEND_STARTED'¶
Remote PC suspend started (vmware suspend)
- UNKNOWN = 'UNKNOWN'¶
PC state can not be determined
- class netlab.enums.RemoveVMS(value)¶
How to remove VMs during pod removal.
- DATACENTER = 'DATACENTER'¶
Datacenter
- DISK = 'DISK'¶
Disk
- LOCAL = 'LOCAL'¶
Local
- NONE = 'NONE'¶
None
- class netlab.enums.ReservationScope(value)¶
Reservation scope.
- ALL = 'ALL'¶
All reservations.
- CLASS = 'CLASS'¶
Relevant to your class.
- COMMUNITY = 'COMMUNITY'¶
Relevant to the community.
- RELEVANT = 'RELEVANT'¶
Relevant to caller, i.e. reservations associated with you in context to user role.
- class netlab.enums.VirtualHostComPath(value)¶
Virtual host communication path.
- INSIDE = 'INSIDE'¶
Communication will be done on the INSIDE (169.254.0.x) network.
- OUTSIDE = 'OUTSIDE'¶
Communication will be done on the OUTSIDE network.
- class netlab.enums.VirtualMachineLicenseType(value)¶
Virtual machine type.
- VCENTER = 'vcenter'¶
License is for a vm host server.
- VHOST = 'vhost'¶
License is for a vCenter server.
- class netlab.enums.VirtualMachineRole(value)¶
Virtual machine role in NETLAB+ inventory.
- MASTER = 'MASTER'¶
Virtual machine is often associated with the Master Pod. Additional protections are in place to prevent accidental removal.
- NORMAL = 'NORMAL'¶
Virtual machine will typically revert to snapshot after reservation.
- PERSISTENT = 'PERSISTENT'¶
Virtual machine will not revert to snapshot after reservation.
- TEMPLATE = 'TEMPLATE'¶
Pristine virtual machine image used as the basis for cloning many virtual machines. Template VMs cannot be powered on, modified, or assigned to pods.