CA-74343: Fix HA on VLANs
CA-74343: Fix HA on VLANs

The recent change to not automatically plug VLANs on host boot (for
scalability reasons), led the HA code to believe that VMs on VLANs
were not agile, even if they were.

It turns out that the agility check for networking is too strict.
Currently, xapi only considers a VM agile if all its networks
1. have PIFs on all enabled hosts, AND
2. have all those PIFs attached/plugged.

This is too strict, because a PIF can always be plugged, unless it is
a bond slave, and xapi automatically plugs a PIF when it is needed by a
VM.

Therefore, the agility check was changed to require that a VM's networks
1. have PIFs on all enabled hosts, AND
2. none of those PIFs are bond slaves.

Signed-off-by: Rob Hoes <8783b3376fb07d39edffc8d7da68a6de3874a7e6@citrix.com>

euanh/xen-api,koushikcgit/xen-api,robertbreker/xen-api,agimofcarmen/xen-api,koushikcgit/xen-api,salvocambria/xen-api,cheng-z/xen-api,cheng-z/xen-api,Frezzle/xen-api,simonjbeaumont/xen-api,salvocambria/xen-api,cheng--zhang/xen-api,ravippandey/xen-api,koushikcgit/xen-api,guard163/xen-api,djs55/xen-api,simonjbeaumont/xen-api,vasilenkomike/xen-api,rafalmiel/xen-api,rafalmiel/xen-api,jjd27/xen-api,cheng--zhang/xen-api,robertbreker/xen-api,ravippandey/xen-api,koushikcgit/xen-api,djs55/xen-api,thomassa/xen-api,srowe/xen-api,robertbreker/xen-api,koushikcgit/xen-api,rafalmiel/xen-api,anoobs/xen-api,cheng--zhang/xen-api,ravippandey/xen-api,thomassa/xen-api,vasilenkomike/xen-api,huizh/xen-api,cheng--zhang/xen-api,ravippandey/xen-api,Frezzle/xen-api,euanh/xen-api,salvocambria/xen-api,jjd27/xen-api,robertbreker/xen-api,guard163/xen-api,agimofcarmen/xen-api,cheng--zhang/xen-api,simonjbeaumont/xen-api,cheng-z/xen-api,ravippandey/xen-api,Frezzle/xen-api,vasilenkomike/xen-api,anoobs/xen-api,anoobs/xen-api,ravippandey/xen-api,cheng-z/xen-api,cheng--zhang/xen-api,simonjbeaumont/xen-api,thomassa/xen-api,guard163/xen-api,djs55/xen-api,salvocambria/xen-api,jjd27/xen-api,cheng--zhang/xen-api,euanh/xen-api,srowe/xen-api,vasilenkomike/xen-api,thomassa/xen-api,koushikcgit/xen-api,rafalmiel/xen-api,Frezzle/xen-api,jjd27/xen-api,huizh/xen-api,vasilenkomike/xen-api,cheng-z/xen-api,srowe/xen-api,agimofcarmen/xen-api,huizh/xen-api,djs55/xen-api,cheng-z/xen-api,guard163/xen-api,srowe/xen-api,jjd27/xen-api,agimofcarmen/xen-api,simonjbeaumont/xen-api,guard163/xen-api,salvocambria/xen-api,huizh/xen-api,huizh/xen-api,anoobs/xen-api,agimofcarmen/xen-api,guard163/xen-api,rafalmiel/xen-api,agimofcarmen/xen-api,rafalmiel/xen-api,huizh/xen-api,simonjbeaumont/xen-api,euanh/xen-api,djs55/xen-api,euanh/xen-api,anoobs/xen-api,salvocambria/xen-api,Frezzle/xen-api,thomassa/xen-api,anoobs/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,thomassa/xen-api,cheng-z/xen-api,djs55/xen-api,robertbreker/xen-api,jjd27/xen-api,srowe/xen-api,euanh/xen-api