bonding: Use device names instead of Xen OpaqueRefs
authorJesse Gross <jesse@nicira.com>
Wed, 13 Jan 2010 22:43:09 +0000 (17:43 -0500)
committerJesse Gross <jesse@nicira.com>
Thu, 14 Jan 2010 21:57:11 +0000 (16:57 -0500)
When configuring the slaves of a bond, interface-reconfigure was
directly writing the Xen OpaqueRef as the name instead of first
converting it into a standard device name.

Bug #2377

xenserver/opt_xensource_libexec_interface-reconfigure

index d346cdc4b1b78812c3fccdef670ef000a6a1285a..3021df1db6212b2724ad8ea61d47b0274f8da828 100755 (executable)
@@ -1214,7 +1214,9 @@ def datapath_configure_bond(pif,slaves):
     pifrec = db.get_pif_record(pif)
     interface = pif_netdev_name(pif)
 
-    argv = ['--', 'add-bond', bridge, interface] + slaves
+    argv = ['--', 'add-bond', bridge, interface]
+    for slave in slaves:
+        argv += [pif_netdev_name(slave)]
 
     # XXX need ovs-vsctl support
     #if pifrec['MAC'] != "":