+ if name.startswith("vif"):
+ new_interfaces[name]["iface-status"] = "active"
+
+ #Tap devices take their xs-vif-uuid from their corresponding vif and
+ #cause that vif to be labled inactive.
+ for name in new_interfaces:
+ if not name.startswith("tap"):
+ continue
+
+ vif = name.replace("tap", "vif", 1)
+
+ if vif in new_interfaces:
+ xs_vif_uuid = new_interfaces[vif]["xs-vif-uuid"]
+ new_interfaces[name]["xs-vif-uuid"] = xs_vif_uuid
+
+ new_interfaces[vif]["iface-status"] = "inactive"
+ new_interfaces[name]["iface-status"] = "active"
+
+ update_tap_from_vif(idl, name, vif)
+