[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][NET] 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 tmpbridge
  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 
  ip addr add scope global dev tmpbridge label tmpbridge:00

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>

Attachment: xen-network-bridge-handle-secondary-addresses.patch
Description: Text Data

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.