From: Justin Pettit Date: Sat, 12 Dec 2009 00:54:01 +0000 (-0800) Subject: xenserver: Add xs-network-names to "external_ids" column in config db X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a77b2bce0154fedcf36747f45e477605e98559d;p=openvswitch xenserver: Add xs-network-names to "external_ids" column in config db --- diff --git a/xenserver/usr_share_vswitch_scripts_dump-vif-details b/xenserver/usr_share_vswitch_scripts_dump-vif-details index 7b05abfc..3c337518 100755 --- a/xenserver/usr_share_vswitch_scripts_dump-vif-details +++ b/xenserver/usr_share_vswitch_scripts_dump-vif-details @@ -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()