This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-3.1-testing] Handle netdev secondary addresses and

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] Handle netdev secondary addresses and labels
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Jan 2008 03:50:18 -0800
Delivery-date: Fri, 11 Jan 2008 03:50:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1199964934 0
# Node ID 0e68233d9176c3a2b45822628f453682e1349747
# Parent  8dbb6b32afaf2ab82df875663223881657d4c4b7
Handle netdev secondary addresses and labels

Fix the network-bridge logic to correctly transfer secondary IP
address from $netdev to $bridge.

e.g. if you add an secondary address/label/alias with:

  $> ip addr add dev eth0 label eth0:00

then, "ip addr show dev eth0" gives e.g.:

  inet brd scope global eth0
  inet scope global secondary eth0:00

and transfer_addrs() tries to execute:

  ip addr add brd scope global dev
  ip addr add scope global secondary dev tmpbridge:00

which causes the sript to fail because:

  1) The device tmpbridge:00 doesn't exist
  2) The "secondary" flag isn't valid

This patch fixes the sed commands to instead give:

  ip addr add brd scope global dev
  tmpbridge label tmpbridge
  ip addr add scope global dev tmpbridge label

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>
xen-unstable changeset:   16680:7b7700a30e5280d57ecb9a284ee943aa80ae37f0
xen-unstable date:        Tue Jan 08 09:43:44 2008 +0000
 tools/examples/network-bridge |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 8dbb6b32afaf -r 0e68233d9176 tools/examples/network-bridge
--- a/tools/examples/network-bridge     Thu Jan 10 11:34:38 2008 +0000
+++ b/tools/examples/network-bridge     Thu Jan 10 11:35:34 2008 +0000
@@ -101,7 +101,8 @@ transfer_addrs () {
     ip addr show dev ${src} | egrep '^ *inet ' | sed -e "
 s/inet/ip addr add/
-s/${src}/dev ${dst}/
+s/${src}/dev ${dst} label ${dst}/
 " | sh -e
     # Remove automatic routes on destination device
     ip route list | sed -ne "

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] Handle netdev secondary addresses and labels, Xen patchbot-3.1-testing <=