From: Jesse Gross Date: Wed, 13 Jan 2010 22:43:09 +0000 (-0500) Subject: bonding: Use device names instead of Xen OpaqueRefs X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1723e50ed23af9c66c06e2f899ec6eedce20de80;p=openvswitch bonding: Use device names instead of Xen OpaqueRefs 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 --- diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index d346cdc4..3021df1d 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -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'] != "":