Base class for all hypervisors
The syntax for the _CHECK variables and the contents of the PARAMETERS dict is the same, see the docstring for BaseHypervisor.PARAMETERS.
| Class | |
Abstract virtualisation technology interface |
| Class | |
Undocumented |
| Function | |
Run the network configuration script for a specified NIC |
| Function | |
Generate a TAP network interface name for a NIC. |
| Function | |
Builds parameter checker for set membership. |
| Constant | MIGRATION |
Undocumented |
| Constant | NO |
parameter without any checks at all |
| Constant | OPT |
Undocumented |
| Constant | OPT |
optional directory parameter |
| Constant | OPT |
optional file parameter |
| Constant | OPT |
Undocumented |
| Constant | OPT |
Undocumented |
| Constant | OPT |
Undocumented |
| Constant | OPT |
Undocumented |
| Constant | OPT |
Undocumented |
| Constant | REQ |
Undocumented |
| Constant | REQ |
mandatory directory parametr |
| Constant | REQ |
mandatory file parameter |
| Constant | REQ |
Undocumented |
| Constant | REQ |
Undocumented |
| Constant | REQ |
Undocumented |
| Constant | REQ |
Undocumented |
| Constant | REQ |
Undocumented |
| Constant | REQUIRED |
parameter required to exist (and non-false), but without other checks; beware that this can't be used for boolean parameters, where you should use NO_CHECK or a custom checker |
| Function | _ |
Verifies if the given single CPU mask is valid |
| Function | _ |
Verifies if the given multiple CPU mask is valid |
| Constant | _CPU |
Undocumented |
| Constant | _DIR |
stub for directory checks, without the required flag |
| Constant | _FILE |
stub for file checks, without the required flag |
| Constant | _FILE |
Undocumented |
| Constant | _MULTI |
Undocumented |
| Constant | _NET |
Undocumented |
| Constant | _NONNEGATIVE |
Undocumented |
| Constant | _VIRTIO |
Undocumented |
Run the network configuration script for a specified NIC
| Parameters | |
| cmd:string | command to run |
| instance:instance object | instance we're acting on |
| seq:int | nic sequence number |
| nic:nic object | nic we're acting on |
| tap:str | the host's tap interface this NIC corresponds to |
Generate a TAP network interface name for a NIC.
This helper function generates a special TAP network interface name for NICs that are meant to be used in instance communication. This function checks the existing TAP interfaces in order to find a unique name for the new TAP network interface. The TAP network interface names are of the form 'gnt.com.%d', where '%d' is a unique number within the node.
| Returns | |
| string | TAP network interface name, or the empty string if the NIC is not used in instance communication |
Builds parameter checker for set membership.
| Parameters | |
| required:boolean | whether this is a required parameter |
| my | allowed values set |
Undocumented
| Value |
|
parameter required to exist (and non-false), but without other checks; beware that this can't be used for boolean parameters, where you should use NO_CHECK or a custom checker
| Value |
|
Verifies if the given single CPU mask is valid
The single CPU mask should be in the form "a,b,c,d", where each letter is a positive number or range.
Verifies if the given multiple CPU mask is valid
A valid multiple CPU mask is in the form "a:b:c:d", where each letter is a single CPU mask.
Undocumented
| Value |
|
stub for directory checks, without the required flag
| Value |
|
stub for file checks, without the required flag
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|
Undocumented
| Value |
|