~craigtracey/cloud-init/osfamilies

Viewing all changes in revision 757.

  • Committer: Scott Moser
  • Author(s): Gerard Dethier
  • Date: 2013-01-07 17:20:58 UTC
  • Revision ID: smoser@ubuntu.com-20130107172058-vylmqa8lr48yf2ma
DataSourceCloudStack: fallback to default route if no virtual router found

Changes in revision 753 broke cloud-init on ubuntu, as it has a different
dhclient directory than Fedora where the change was developed and tested.

This change does 2 things:
 * searches multiple directories (including /var/lib/dhcp) for the lease
   files.
 * adds a fallback to the old code path of choosing the default route
   as the virtual router if there were no virtual routers found in the
   lease files.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: