~openstack-gd/nova/libguestfs

Viewing all changes in revision 655.

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya
  • Date: 2011-02-08 19:09:42 UTC
  • mfrom: (641.2.10 lp710959)
  • Revision ID: tarmac-20110208190942-k70xupt5twkgk589
Automates the setup for FlatDHCP regardless of whether the interface has an ip address.

FlatDHCP only has worked until now if the underlying interface that you bridge into has no ip address.  This branch will do the necessary setup to allow it to work by:

* Creating a bridge with the private address for dhcp
* Moving any existing ips from the interface onto the bridge
* Adding the interface to the bridge
* Recreating the default route if it was deleted by moving the interface

It will additionally add a route to compute hosts for bridges that it adds to the compute hosts.  This seems to be necessary in some cases where the default route uses a different interface.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: