From 1723e50ed23af9c66c06e2f899ec6eedce20de80 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 13 Jan 2010 17:43:09 -0500 Subject: [PATCH] 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 --- xenserver/opt_xensource_libexec_interface-reconfigure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'] != "": -- 2.30.2