xenserver: Add xs-network-names to "external_ids" column in config db
authorJustin Pettit <jpettit@nicira.com>
Sat, 12 Dec 2009 00:54:01 +0000 (16:54 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 12 Dec 2009 22:54:27 +0000 (14:54 -0800)
xenserver/usr_share_vswitch_scripts_dump-vif-details

index 7b05abfc28353aa62e471ff591bd4f90ec829ced..3c33751819c4620c81aa24a183decd354b7c5d9d 100755 (executable)
@@ -54,10 +54,14 @@ def dump_vif_info(domid, devid, vif_ref):
                # configuration variable, but vNetManager can tolerate that.
                if not net_rec['PIFs']:
                        bridge = net_rec['bridge']
-                       key = "xs-network-uuids"
-                       value = net_rec['uuid']
+
+                       xs_network_uuid = net_rec['uuid']
+                       print("-- br-set-external-id %s %s %s"
+                             % (bridge, "xs-network-uuids", xs_network_uuid))
+
+                       xs_network_name = net_rec['name_label']
                        print("-- br-set-external-id %s %s %s"
-                             % (bridge, key, value))
+                             % (bridge, "xs-network-names", xs_network_name))
        finally:
                session.xenapi.session.logout()