X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fusr_share_openvswitch_scripts_refresh-network-uuids;h=42ebe06e723512dfaea1dbcc2c253603a109acdc;hb=769c32b0b3e9795f1dd5ed04ade3f51ca2b3e113;hp=55a8ba8b89055b041db47cdda2ecbbf1660fe057;hpb=3b3289fcb969fa3eab708b55d1b7d24d32644d1b;p=openvswitch diff --git a/xenserver/usr_share_openvswitch_scripts_refresh-network-uuids b/xenserver/usr_share_openvswitch_scripts_refresh-network-uuids index 55a8ba8b..42ebe06e 100755 --- a/xenserver/usr_share_openvswitch_scripts_refresh-network-uuids +++ b/xenserver/usr_share_openvswitch_scripts_refresh-network-uuids @@ -1,21 +1,2 @@ -#! /usr/bin/python - -import sys -sys.path.insert(0, "/opt/xensource/libexec") -from InterfaceReconfigure import * -from InterfaceReconfigureVswitch import * - -db_init_from_xenapi(None) - -vsctl_argv = [] -for pif in db().get_all_pifs(): - pifrec = db().get_pif_record(pif) - if not pif_is_vlan(pif) and pifrec['currently_attached']: - vsctl_argv += set_br_external_ids(pif) - -#log("modifying configuration:") -#for c in vsctl_argv: -# log(" %s" % c) - -if vsctl_argv != []: - datapath_modify_config(vsctl_argv) +#! /bin/sh +exec /opt/xensource/libexec/interface-reconfigure rewrite