xenserver: Update interface-reconfigure and vif integration scripts.
authorIan Campbell <Ian.Campbell@citrix.com>
Fri, 22 Jan 2010 20:55:37 +0000 (12:55 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 25 Jan 2010 18:36:08 +0000 (10:36 -0800)
commitb3080599f6b280c63b9b6f4ca2d3c6006bcd9590
tree110120179feef5a63d3e8236b1b4960e81db0dc0
parent53d3bbbc090d99a36ae0593ccb34246d1ab4bf6e
xenserver: Update interface-reconfigure and vif integration scripts.

This patch updates the versions of the host integration scripts to
what is present in the recent XCP update and the next release of
XenServer (5.6). I think it probably works on 5.5 as well but I
haven't verified that.

These new versions support runtime selection of the Linux bridging vs
vswitch through the toolstack. The patch includes the necessary
reconfiguration (rewriting /etc/xensource/network.conf) to enable
vswitch in the RPM %post stage.

The RPM spec file integration is only lightly tested, seems to work
for me.

This commit is as provided by Ian Campbell, with a few minor tweaks:

    - Updated xenserver/automake.mk to distribute the added files.

    - Updated RPM spec file not to complain if the added files do
      not already exist (since they do not exist on XenServer 5.5.0).

    - Change location of dbcache back to /var/lib/openvswitch/dbcache
      so that this can coexist with our other internal builds.
      (Undoubtedly we will have to adopt the new location chosen by Ian
      eventually, however.)
xenserver/automake.mk
xenserver/etc_xensource_scripts_vif
xenserver/opt_xensource_libexec_InterfaceReconfigure.py [new file with mode: 0644]
xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py [new file with mode: 0644]
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py [new file with mode: 0644]
xenserver/opt_xensource_libexec_interface-reconfigure
xenserver/vswitch-xen.spec