CA-89303: A slave without master cannot bring up its management interface.

It should not try to query the DB, since the master is not accessible.

This commit fixes the problem introduces by the fix for CA-87787,
commit: 8d0adadf54911e7b6a645ca1ca2fdb241f65ad3e

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
xenopsd: Support driver domains for PV guests

The case of HVM guests with emulated QEMU networks devices is not yet
handled.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Allow setting the VIF backend for a network

If, on a network, other_config:backend_vm is set to the UUID of a VM, this VM is
used for the VIF backends (netback) of any VIFs on the network.

This is useful for internal networks (only), since the key is set on a network
rather than on a PIF.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #998 from jeromemaloberti/CA-89303-tal

CA-89303: A slave without master cannot bring up its management interface
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>
Merge pull request #1010 from mcclurmc/pr1510-lacp-api-improvements-tallahassee

PR-1510 LACP XenAPI Improvements
XOP-261: Reinstate the server on 127.0.0.1 when no management
interface is defined

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261/CA-96936: Remove Xapi_mgmt_iface.rebind

Since the management interface is listening in IPv6 automatically if
available.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XAPI-261/CA-96936: Make himn_only more general

To also manage the case of a localhost server.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>

Conflicts:
	ocaml/xapi/xapi_mgmt_iface.ml

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261/CA-96936: Prevent multiple starts of localhost server

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261/CA-96936: Issue a warning in case of multiple starts of HIMN server

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-96936/XOP-261: himn interface should not be started if the host is
already listening on ANY.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #1026 from jeromemaloberti/CA-96936-tallahassee

CA-96936/XOP-261: Reinstate the server on 127.0.0.1 when no management interface is defined
Merge pull request #1000 from robhoes/p2p

TALLAHASSEE: Allow setting the VIF backend for a network
Revert "XOP-261/CA-96936: Remove Xapi_mgmt_iface.rebind"

This reverts commit 1d10f4f78caab8f49aba97b3a3f5e572af623b61.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #1033 from jeromemaloberti/XOP-261-partial-revert

Revert "XOP-261/CA-96936: Remove Xapi_mgmt_iface.rebind"
Merge remote-tracking branch 'origin/tampa-lcm' into tallahassee

Conflicts:
	ocaml/xapi/xapi_mgmt_iface.ml
XOP-261: Make sure that stunnel listens on the right addresses

This may be "all IP addresses" or only localhost, and IPv4 or IPv6.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>