X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fopt_xensource_libexec_InterfaceReconfigureVswitch.py;h=6c9e3fa8c494d8cb628350ff93ea38a5a7109d48;hb=9ec4d255acc5628f395fde8aff84a7027c2dc1c9;hp=661199b4a7163f8d21c8db0c5e324510afdfcad9;hpb=c366e0cc25c40878110868a94b0c06500516368b;p=sliver-openvswitch.git diff --git a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py index 661199b4a..6c9e3fa8c 100644 --- a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py +++ b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py @@ -475,6 +475,10 @@ class DatapathVswitch(Datapath): dpname = pif_bridge_name(self._dp) if pif_is_vlan(self._pif): + # In some cases XAPI may misguidedly leave an instance of + # 'bridge' which should be deleted. + vsctl_argv += ['--', '--if-exists', 'del-br', bridge] + # configure_datapath() set up the underlying datapath bridge. # Stack a VLAN bridge on top of it. vsctl_argv += ['--', '--may-exist', 'add-br',