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>

koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/squeezed,koushikcgit/xcp-networkd,johnelse/xcp-rrdd,simonjbeaumont/xcp-rrdd,sharady/xcp-networkd,robhoes/squeezed,djs55/xcp-rrdd,simonjbeaumont/xcp-rrdd,djs55/xcp-networkd,djs55/xcp-networkd,sharady/xcp-networkd,koushikcgit/xcp-networkd,johnelse/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/xcp-rrdd