Improve import of networks/VIFs on pool join
Improve import of networks/VIFs on pool join

Metadata export+import is used to recreate VIFs on the pool, when a host joins. VIFs are linked to networks on the receiving pool by matching the name_label of the network on the two pools. If the name_label does not exist, this has to be because an existing physical network on the receiving pool is used; in this case, we match on bridge name. This is a sensible fall-back option for imports in general.

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

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