interface-reconfigure: callout to datapath backend class method on rewrite
authorIan Campbell <ian.campbell@citrix.com>
Fri, 4 Jun 2010 15:39:10 +0000 (16:39 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 4 Jun 2010 17:20:36 +0000 (10:20 -0700)
commit823c5699d4de7bf726f988e1ca6197fb2400f388
treeb37c8e5e4c968ef2f2032d5acdbb5df1d1f88edb
parent169e3808f7c510a048589d8e658336919079a6a0
interface-reconfigure: callout to datapath backend class method on rewrite

Use this mechanism to allow the vswitch backend to update the vswitch
configuration's mapping from datapath to XenAPI datamodel Network
UUIDs. The vswitch needs a mechanism to update these when they change
(i.e. on pool join and eject).

Refactor the DatapathFactory method to return the class which the
caller can instantiate or not as the require.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xenserver/opt_xensource_libexec_InterfaceReconfigure.py
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py
xenserver/opt_xensource_libexec_interface-reconfigure