This change allows systems like Pacemaker to manually manage VM shutdown upon dom0 shutdown.
It adds a new 'auto_poweroff' flag to block automatic VM shutdown within the shutdown.py script.

e.g. to set this on a VM:
xe vm-param-set other-config:auto_poweroff=false uuid=$UUID

This flag is complementary to the existing 'auto_poweron' flag.
CA-87552: add "Network.other_config:assume_network_is_shared=true" to override internal network checks

Normally we block VM.start, migrate etc if a VIF is on an "internal"
network which is already in use on another host. In the longer term we
should just tunnel, but in the short term we allow clients to specify
whether they want to allow the operations instead, per Network.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CP-3625: Implemented metrics pif_aggr_tx and pif_aggr_rx for aggregated rx/tx traffic across all PIFs

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>
CP-3622: Implemented a new metric for average pCPU utilisation

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@ocamlpro.com>
CA-80189: Wrong pii for "xenopsd" system status capability.

Signed-off-by: John Else <john.else@citrix.com>
CP-3712: Set default rebalance-interval for balance-slb bonds to 30 minutes

This would alleviate problems in (non-stacked) physical switches, due to rapid
movement of MAC addresses between links.

We do this only on ovs, because the linux bond mode does not support
changing the rebalance-interval (it is fixed at 10s).

It is (still) possible to override this by setting
PIF.other_config:bond-rebalance-interval (in ms), followed by a PIF.plug.

Tested in both the ovs and Linux bridge mode by creating and destroying
a bond, and inspecting the rebalance interval in the ovs case (ovs-vsctl
list port).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #792 from angrygreenfrogs/master

Allow manual management of VM shutdown with 'auto_poweroff' flag
Change remote-address parameter to remote-master

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-86418: enable SXM CLI destination-sr-uuid option

If the user doesn't specify the destination-sr-uuid, then the vdi-map is used
instead. If the user does specify the destination-sr-uuid, then all of the VMs
VDIs which don't already have an explicit vdi-sr mapping will be mapped to that
sr.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Remove encrypt option from vm-migrate CLI

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Update vm-migrate CLI help text

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Clean up SXM CLI print statements

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Fail if destination-sr-uuid doesn't exist, and warn when selecting remote pool's default SR

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Merge pull request #833 from robhoes/slb
CA-87787 - Listen on IPv6 if any IPv6 addresses configured

Signed-off-by: Bob Ball <bob.ball@citrix.com>
CA-88904 - Mark PIF as dom0 interface when it has IPv4 or IPv6 configured

Signed-off-by: Bob Ball <bob.ball@citrix.com>
Merge pull request #832 from johnelse/ca-80189
Merge pull request #835 from BobBall/ipv6fixes2
CA-88283/CA-88859: Exclude dom0 from any squeeze activity

This means that squeezed will never attempt to balloon down dom0.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #830 from vbmithr/rrdd_metrics_for_master