From: Justin Pettit <jpettit@nicira.com>
Date: Mon, 17 Aug 2009 19:43:59 +0000 (-0700)
Subject: xenserver: Add missing argument for fake-iface config
X-Git-Tag: v0.90.5~35
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d2cd45db48e2713b74c3a31f746f923a72294e46;p=sliver-openvswitch.git

xenserver: Add missing argument for fake-iface config

The interface-reconfigure script may add the 'fake-iface' configuration
option to the ovs-vswitchd.conf, but neglects to mention the interface.
This resulted in a "bonding.%s.fake-iface=true" line, which is clearly
wrong.  This commit corrects that behavior.
---

diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure
index 44a2b1e0c..0ae8e70a8 100755
--- a/xenserver/opt_xensource_libexec_interface-reconfigure
+++ b/xenserver/opt_xensource_libexec_interface-reconfigure
@@ -843,7 +843,7 @@ def configure_bond(pif):
     argv = ['--del-match=bonding.%s.[!0-9]*' % interface]
     argv += ["--add=bonding.%s.slave=%s" % (interface, slave)
              for slave in physdev_names]
-    argv += ['--add=bonding.%s.fake-iface=true']
+    argv += ['--add=bonding.%s.fake-iface=true' % interface]
 
     if pifrec['MAC'] != "":
         argv += ['--add=port.%s.mac=%s' % (interface, pifrec['MAC'])]