xenserver: Choose correct management PIF even with --force.
authorBen Pfaff <blp@nicira.com>
Mon, 18 May 2009 20:15:28 +0000 (13:15 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 18 May 2009 20:15:28 +0000 (13:15 -0700)
The --force option was failing to choose the management PIF based on
the "management" PIF field.  This commit fixes the problem.

This is a partial fix for bug #1327.

xenserver/opt_xensource_libexec_interface-reconfigure

index f6458405290657b82c4931400b52a29051a3019a..00f345565ab86be940fb3719c789ca35418763e9 100755 (executable)
@@ -1042,6 +1042,7 @@ def main(argv=None):
                 db = DatabaseCache(cache_file=dbcache_file)
                 host = db.extras['host']
                 pif = db.get_pif_by_bridge(host, force_interface)
+                management_pif = db.get_management_pif(host)
 
                 if action == "up":
                     action_up(pif)