summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceGCE.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-08-29 10:34:19 -0600
committerChad Smith <chad.smith@canonical.com>2017-08-29 10:34:19 -0600
commit3c45330af2a301f2bf219da556844d01cef6778e (patch)
tree3498d08d5fedc652bac7f27938c009b515dffe0b /cloudinit/sources/DataSourceGCE.py
parentaf4630c9846fe979152320035e9cc6c411506503 (diff)
downloadvyos-cloud-init-3c45330af2a301f2bf219da556844d01cef6778e.tar.gz
vyos-cloud-init-3c45330af2a301f2bf219da556844d01cef6778e.zip
ec2: Add IPv6 dhcp support to Ec2DataSource.
DataSourceEc2 now parses the metadata for each nic to determine if configured for ipv6 and/or ipv4 addresses. In AWS for metadata version 2016-09-02, nics configured for ipv4 or ipv6 addresses will have non-zero values stored in metadata at network/interfaces/macs/<MAC>/public-ipv4 or ipv6s respectively. Those metadata files are only non-zero when an ipv4 or ipv6 ip is associated to the specific nic. A new DataSourceEc2.network_config property is added which parses the metadata and renders a network version 1 dictionary representing both dhcp4 and dhcp6 configuration for associated nics. The network configuration returned from the datasource will also 'pin' the nic name to the name presented on the instance for each nic. LP: #1639030
Diffstat (limited to 'cloudinit/sources/DataSourceGCE.py')
0 files changed, 0 insertions, 0 deletions