xenserver: Gracefully refresh network UUIDs on pool join or leave.
authorBen Pfaff <blp@nicira.com>
Mon, 26 Apr 2010 21:18:32 +0000 (14:18 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 26 Apr 2010 23:41:35 +0000 (16:41 -0700)
commit2e8a4c31abe39ce4443d046d86c595fd73351900
treefb7f3003be7d428550cc7c1042ebd77fa0ba3483
parenta4948b95af9cfebb85ffcef9fbccc27b7a218a79
xenserver: Gracefully refresh network UUIDs on pool join or leave.

The vswitch database is supposed to maintain an up-to-date UUID for the
system's networks in the Bridge table as external-ids:network-uuids.  On
XenServer systems, /opt/xensource/libexec/interface-reconfigure updates
these fields as bridges are brought up and down.  Most of the time, that is
sufficient.  However, this is one exception: when a XenServer host enters
or leaves a pool, interface-reconfigure is not invoked, and neither is any
other script.  So this commit introduces a new, XenServer-specific daemon
that monitors the XenServer's pool membership status and refreshes the
network UUIDs (by invoking the refresh-network-uuids script) if it changes.

Bug #2097.
lib/vlog-modules.def
xenserver/automake.mk
xenserver/etc_init.d_openvswitch
xenserver/openvswitch-xen.spec
xenserver/ovs-xenserverd.8.in [new file with mode: 0644]
xenserver/ovs-xenserverd.c [new file with mode: 0644]
xenserver/usr_share_openvswitch_scripts_sysconfig.template