NETConfigHostSlice
Cuts the SLICE of a netconfig one host is answerable for.
|
Note
|
A customer config span several hosts - the Liberator, a Power Station, physical boxes nobody virtualise. A synchronisation run on ONE host must compare that host against ITS OWN slice only. Compare it against the whole config instead and every guest belonging to another host look MISSING, so the run would try to create foreign machines on the wrong node - every cycle, forever, because they will never appear there. The slice is decided by the hosted serial |
public static class NETConfigHostSlice
1. Methods
1.1. IsHostedOn(VirtualMachineSettings, SerialNumber)
Whether this record describe a virtual machine living on the given host.
public static bool IsHostedOn(this VirtualMachineSettings record, SerialNumber hostSerial)
| Name | Type | Description |
|---|---|---|
record |
VirtualMachineSettings |
Record to test. |
hostSerial |
SerialNumber |
Serial of the host. |
Returns: bool — when the record belong to that host.
1.2. VirtualMachinesOn(IEnumerable<VirtualMachineSettings>, SerialNumber)
The virtual machines of this record set that live on one host.
public static IEnumerable<VirtualMachineSettings> VirtualMachinesOn(this IEnumerable<VirtualMachineSettings> records, SerialNumber hostSerial)
| Name | Type | Description |
|---|---|---|
records |
IEnumerable<VirtualMachineSettings> |
Records read from a netconfig store. |
hostSerial |
SerialNumber |
Serial of the host doing the synchronisation. |
Returns: IEnumerable<VirtualMachineSettings> — The rows that host is answerable for.