xenserver: Keep Centos network config files up-to-date even with vswitch.
authorBen Pfaff <blp@nicira.com>
Thu, 28 May 2009 21:50:54 +0000 (14:50 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 29 May 2009 00:18:55 +0000 (17:18 -0700)
commit5ce35027e7e95253e71a6733cf408a53fbf23085
treeb0bbb5e21cde7ab76a688713e5eaa6273ad76ee6
parent6ec9671e914018ebed56b18bde69ba5a587c57c1
xenserver: Keep Centos network config files up-to-date even with vswitch.

When the vswitch is running, it doesn't care about, doesn't need, and
doesn't use the files in /etc/sysconfig/network-scripts.  But if you ever
remove the vswitch (e.g. "rpm -e vswitch") then the regular bridge code
does need them.  There is no guarantee that we will be able to get access
to the xapi database at "rpm -e" time, so it is better to keep these
configuration files up-to-date after each operation.  This commit does
that.

Given that we keep these files up-to-date after each operation now, there
is no need to call interface-reconfigure at RPM uninstall time, so this
commit also removes the script code that did that.
xenserver/opt_xensource_libexec_interface-reconfigure
xenserver/vswitch-xen.spec