diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-21 12:26:02 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-21 12:26:02 -0400 |
commit | 9633891a8f6dbc4a96eb1ad58834356736133ebb (patch) | |
tree | 42b54caddfe0328d1812d75da72762b3297f6e45 /cloudinit/ssh_util.py | |
parent | 5f0634905cae5c754161733be8f408763971938c (diff) | |
download | vyos-cloud-init-9633891a8f6dbc4a96eb1ad58834356736133ebb.tar.gz vyos-cloud-init-9633891a8f6dbc4a96eb1ad58834356736133ebb.zip |
net: fix inet value for subnets, don't add interface attributes to alias
[copied from curtin revno 390]
Apply two separate fixes for configuring bonding with ip aliases.
Curtin re-used the interface's inet value for each subnet that might
be configured. In the case where the configuration included an ipv4
address after an ipv6 one resulted in emitting 'inet6' for ipv4 address
which is not correct. Resolve this issue by calculating the inet
value independent of the current status of the iface, using the subnet
config instead.
When rendering a network_config which includes ip alias interfaces
do not emit any attributes, like MTU, or bond/bridge options Including
these values is almost always wrong or will result in confusing
behavior on the target system.
LP: #1588547
Diffstat (limited to 'cloudinit/ssh_util.py')
0 files changed, 0 insertions, 0 deletions