xcp-interface-reconfigure-2.3.2.patch 920 B

123456789101112131415161718192021
  1. Description: Use xcp-xapi interface-reconfigure if found
  2. Ubuntu/Debian provide the XCP interface-reconfigure hook in
  3. a FHS compliant location; use this if found.
  4. Author: James Page <james.page@ubuntu.com>
  5. Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1195053
  6. Forwarded: no
  7. --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
  8. +++ b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
  9. @@ -43,6 +43,10 @@ def delete_cacert():
  10. def update(session, args):
  11. # Refresh bridge network UUIDs in case this host joined or left a pool.
  12. script = '/opt/xensource/libexec/interface-reconfigure'
  13. + # NOTE(jamespage): Override with distro xcp xapi locations
  14. + # if present
  15. + if os.path.exists('/usr/lib/xcp/lib/interface-reconfigure'):
  16. + script = '/usr/lib/xcp/lib/interface-reconfigure'
  17. try:
  18. retval = subprocess.call([script, 'rewrite'])
  19. if retval != 0: