From 34a348e500b2c0f50f3de3095db8aa7d61f2953a Mon Sep 17 00:00:00 2001
From: Igor Lvovsky <ilvovsky@redhat.com>
Date: Wed, 6 Jun 2012 14:16:37 +0300
Subject: [PATCH 10/17] Use proper MTU on bonding when add network
Change-Id: Id34f2462ddfc2c9f4a323235c79f919c0cce12a7
Signed-off-by: Igor Lvovsky <ilvovsky@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/5209
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/5552
Tested-by: Federico Simoncelli <fsimonce@redhat.com>
---
vdsm/configNetwork.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py
index 87b32ed..5353d0e 100755
--- a/vdsm/configNetwork.py
+++ b/vdsm/configNetwork.py
@@ -622,10 +622,13 @@ def addNetwork(network, vlan=None, bonding=None, nics=None, ipaddr=None, netmask
# nics must be activated in the same order of boot time to expose the correct
# MAC address.
for nic in nicSort(nics):
- configWriter.addNic(nic, bonding=bonding, bridge=brName, mtu=max(prevmtu, mtu))
+ configWriter.addNic(nic, bonding=bonding, bridge=brName,
+ mtu=max(prevmtu, mtu))
ifup(nic)
if bonding:
- configWriter.addBonding(bonding, bridge=brName, bondingOptions=bondingOptions, mtu=mtu)
+ configWriter.addBonding(bonding, bridge=brName,
+ bondingOptions=bondingOptions,
+ mtu=max(prevmtu, mtu))
ifup(bonding)
if vlan:
--
1.7.1