From: Ben Pfaff Date: Mon, 18 May 2009 20:15:28 +0000 (-0700) Subject: xenserver: Choose correct management PIF even with --force. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7bd01df4b619b880b165cf53e1c019ee407357b;p=openvswitch xenserver: Choose correct management PIF even with --force. 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. --- diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index f6458405..00f34556 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -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)