PR-1510: LACP timeout, aggregator/actor parameters settable

LACP timeout, aggregator/actor parameters are now settable through XenAPI and
CLI. New bond parameters are lacp-time, lacp-aggregator-key and lacp-actor-key.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
PR-1510: bond parameters either have defaults or are omitted

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Remove uneccessary debug statement

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
XOP-375: allow vif-locking=disabled when vswitch controller attached

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-109295: Allow other_config:hvm_serial to set values other than "pty"

Signed-off-by: John Else <john.else@citrix.com>
Add tests for xapi -> xenopsd HVM metadata conversion

Signed-off-by: John Else <john.else@citrix.com>
CA-110805: Add a function to find the host's VGA device

Signed-off-by: John Else <john.else@citrix.com>
CA-110805: Blacklist the system display device rather than creating a PGPU for it

Signed-off-by: John Else <john.else@citrix.com>
CA-109035: Remove the correct xenstore key when PCI unplugging.

We were always attempting to remove dev-0 instead of dev-n. This
led to multiple attempts to e.g. deassign_device for all but the
first passed through device. It also led to a cancelled shutdown
attempting to unplug everything again without any exception handler,
leading to an infinite loop.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Fix VIF.remove_ipv6_allowed
Whitespace: Reformat Pool.create_VLAN_from_PIF

$ camlp4o -printer o -no_comments xapi_pool.ml | md5sum
6afb19c9cff915091d37775375954312

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-106560: Create VLANs on slaves that are in 'Maintenance Mode'

Weaken the condition for creating VLANs on slaves during
a Pool.create_VLAN_from_PIF from hosts that are enabled to hosts that are live
(according to the host metrics). This enables the VLAN to be created on slaves
that are in XenCenter's 'Maintenance Mode'.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-107702: Ensure that networkd explicitly configures all physical interfaces with IP in dom0

This is done by marking the interfaces as "persistent" in networkd. Previously, only bridge
interfaces (xenbr*, xapi*) with IP configuration were made persistent. However, their associated
physical interfaces (eth0 etc.) should receive the same treatment, so that attributes such as the
MTU are configured on these as well.

When a host starts, interfaces with IP config need to be configured before xapi can start,
especially on pool slaves, or if HA is enabled.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-109300: nm: correctly set persistence on parent bridge of VLAN

A VLAN bridge is never "persistent" (i.e. it is never brought up by
networkd on startup), while the parent bridge of the VLAN may be
persistent (in case it has a management IP address).

The bug was that, when creating a VLAN, it set the persistence of
the parent bridge equal to the persitence of the VLAN.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1478 from siddharthv/CA-110801-CW-LCM

Fix remove_ipv6_allowed.
Merge pull request #1476 from siddharthv/NVIDIA-100-CW-LCM

Don't create a PGPU or GPU_group for the system display device
Merge pull request #1475 from siddharthv/NVIDIA-44-CW-LCM

CA-109295: Allow other_config:hvm_serial to set values other than "pty"
Merge pull request #1477 from siddharthv/CA-109035-CW-LCM

CA-109035: Remove the correct xenstore key when PCI unplugging.
Merge pull request #1483 from siddharthv/HFX-868

HFX-868: MTU Fix
Merge pull request #1480 from siddharthv/CA-106560-CW-LCM

CA-106560: Create VLANs on slaves that are in 'Maintenance Mode'