From: Ben Pfaff Date: Fri, 11 Dec 2009 00:43:10 +0000 (-0800) Subject: xensource: Add kluge to make interface-reconfigure work better. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83889ee71649aa76bed685271b114f37de9f5af5;p=openvswitch xensource: Add kluge to make interface-reconfigure work better. This change makes xsconsole able to reconfigure the management interface on some XenServer hosts. It's not clear why it is needed--apparently xapi is creating the bridge behind our back. --- diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index 8119ee86..9a3ef822 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -1375,6 +1375,9 @@ def configure_datapath(pif): if len(offload): run_command(['/sbin/ethtool', '-K', dev] + offload) + # XXX It seems like the following should not be necessary... + cfgmod_argv += ['--', '--if-exists', 'del-br', bridge] + if pif_is_vlan(pif): datapath = pif_datapath(pif) vlan = db.get_pif_record(pif)['VLAN']