Marcin Mirecki has uploaded a new change for review.

Change subject: vm: always return bond mode in Host.getCapabilities
......................................................................

vm: always return bond mode in Host.getCapabilities

The 'mode' attribute in bonding options should always be returned in
Host.getCapabilities.

Change-Id: I697af1c895db5ece99b3f940242b77f623caa8b9
Bug-Url: https://bugzilla.redhat.com/1276445
Signed-off-by: Marcin Mirecki <mmire...@redhat.com>
---
M lib/vdsm/netinfo.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/49550/1

diff --git a/lib/vdsm/netinfo.py b/lib/vdsm/netinfo.py
index f3c9c0c..a30ac97 100644
--- a/lib/vdsm/netinfo.py
+++ b/lib/vdsm/netinfo.py
@@ -446,6 +446,7 @@
     opts = bondOpts(bond)
     mode = opts['mode'][-1] if 'mode' in opts else None
     defaults = getDefaultBondingOptions(mode)
+    defaults.pop('mode', None)
 
     return dict(((opt, val[-1]) for (opt, val) in opts.iteritems()
                  if val and val != defaults.get(opt)))


-- 
To view, visit https://gerrit.ovirt.org/49550
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I697af1c895db5ece99b3f940242b77f623caa8b9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Marcin Mirecki <mmire...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to