netlab.datatypes
Additional Netlab datatypes.
- class netlab.datatypes.HDREvent
- class netlab.datatypes.HDRResult
- class netlab.datatypes.PCCloneSpec
Instructions for a clone.
- clone_role: Literal['MASTER', 'NORMAL', 'PERSISTENT', 'TEMPLATE']
- MASTER:
Commonly used for master pod deployment. Can not be easily deleted.
- NORMAL:
Default Standard virtual machine image for use in pods.
- PERSISTENT:
Commonly used when the virtual machine is not reverting to snapshot and is perpetual.
- 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.
- clone_snapshot: str | None
Name of the snapshot to take on cloned VM. GOLDEN_MASTER is recommended. If not set, a snapshot will not be taken of the cloned VM.
- clone_storage_alloc: Literal['ONDEMAND', 'PREALLOCATED']
- ONDEMAND:
Default Actual size of disk will grow as data is added (saves on storage).
- PREALLOCATED:
The entire disk size will be allocated immediately.
- class netlab.datatypes.VMAlloc
VMAlloc contains information about potential VM resource consumption in a given pod.
- total: VMAllocTotal
Contains total number of virtual machines, virtual CPUs, and memory allocation of the entire pod.
- vh_alloc: Dict[str, VMAllocHostInfo]
Dict containing number of virtual machines, virtual CPUs, and memory allocation for each host assigned to the pod. The keys of vh_alloc are vh_id host identifiers; each key is also be a member of the vh_ids list. The values of this dict are type VM_Alloc_HostInfo (see below). May be an empty dict if the pod has not yet been assigned to any hosts.
- class netlab.datatypes.VMAllocHostInfo
-
- vh_pra_max_cpu: bool | None
Maximum number of virtual CPUs allowed to be scheduled on this host when PRA enabled. None if PRA is disabled.
- vh_pra_max_mem_mb: bool | None
Maximum amount of memory that can be scheduled on this host when PRA enabled. None if PRA is disabled.