diff options
author | Gerard Dethier <g.dethier@gmail.com> | 2012-12-19 09:27:33 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-12-19 09:27:33 -0500 |
commit | 8abbeae7ce15a6fb7a08adc697205d614f868a98 (patch) | |
tree | b84c531029c4fa9012a3830dbd1d590b66c8a9d3 /cloudinit/config/cc_mounts.py | |
parent | 6f96b922886c8d607a6be69ae8bc0ce1caf75d04 (diff) | |
download | vyos-cloud-init-8abbeae7ce15a6fb7a08adc697205d614f868a98.tar.gz vyos-cloud-init-8abbeae7ce15a6fb7a08adc697205d614f868a98.zip |
DataSourceCloudStack: use virtual router rather than default route
In CloudStack's documentation, it is stated that meta/user-data can be
retrieved from CloudStack's Virtual Router [1].
However, cloud-init retrieves these information from default gateway. VR
and default gateway may be the same machine (i.e. have the same address)
in some cases, but that is not be always true (actually, in my case, it is
not).
This change searches the lease files in /var/lib/dhclient to pick out
the dhcp-server-identifier.
It admittedly does make this specific to dhclient.
--
[1] http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Admin_Guide/user-data-and-meta-data.html).
LP: #1089989
Diffstat (limited to 'cloudinit/config/cc_mounts.py')
0 files changed, 0 insertions, 0 deletions